{"id":1019593,"date":"2024-12-27T13:02:08","date_gmt":"2024-12-27T05:02:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1019593.html"},"modified":"2024-12-27T13:02:10","modified_gmt":"2024-12-27T05:02:10","slug":"python%e5%a6%82%e4%bd%95%e9%87%8d%e7%bd%ae%e7%bb%84%e5%90%88%e6%a1%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1019593.html","title":{"rendered":"Python\u5982\u4f55\u91cd\u7f6e\u7ec4\u5408\u6846"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25162053\/31f39cf7-f106-4210-8d2e-f33728f40368.webp\" alt=\"Python\u5982\u4f55\u91cd\u7f6e\u7ec4\u5408\u6846\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u91cd\u7f6e\u7ec4\u5408\u6846\uff08ComboBox\uff09\u901a\u5e38\u6d89\u53ca\u6e05\u7a7a\u73b0\u6709\u7684\u9009\u9879\u5e76\u6dfb\u52a0\u65b0\u7684\u9009\u9879\u3002<strong>\u8fd9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Python\u7684GUI\u6846\u67b6\u5982Tkinter\u3001PyQt\u6216wxPython\u6765\u5b9e\u73b0\uff0c\u65b9\u6cd5\u662f\u6e05\u7a7a\u7ec4\u5408\u6846\u7684\u5185\u5bb9\u3001\u6dfb\u52a0\u65b0\u9009\u9879\u3001\u66f4\u65b0\u663e\u793a<\/strong>\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u4e0d\u540c\u7684GUI\u6846\u67b6\u4e2d\u91cd\u7f6e\u7ec4\u5408\u6846\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Tkinter\u91cd\u7f6e\u7ec4\u5408\u6846<\/h3>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u4f7f\u7528\u5b83\u975e\u5e38\u65b9\u4fbf\u5730\u53ef\u4ee5\u521b\u5efa\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5728Tkinter\u4e2d\u91cd\u7f6e\u7ec4\u5408\u6846\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u521d\u59cb\u5316Tkinter\u548c\u7ec4\u5408\u6846<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5bfc\u5165Tkinter\u5e93\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\u3002\u63a5\u7740\u53ef\u4ee5\u901a\u8fc7<code>ttk<\/code>\u6a21\u5757\u521b\u5efa\u7ec4\u5408\u6846\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import ttk<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u7ec4\u5408\u6846\u91cd\u7f6e\u793a\u4f8b&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u7ec4\u5408\u6846<\/strong><\/h2>\n<p>combo_box = ttk.Combobox(root)<\/p>\n<p>combo_box.pack()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8bbe\u7f6e\u7ec4\u5408\u6846\u7684\u521d\u59cb\u503c<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>values<\/code>\u5c5e\u6027\u6765\u521d\u59cb\u5316\u7ec4\u5408\u6846\u7684\u9009\u9879\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bbe\u7f6e\u7ec4\u5408\u6846\u7684\u521d\u59cb\u9009\u9879<\/p>\n<p>combo_box[&#39;values&#39;] = (&quot;\u9009\u98791&quot;, &quot;\u9009\u98792&quot;, &quot;\u9009\u98793&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u91cd\u7f6e\u7ec4\u5408\u6846<\/h4>\n<\/p>\n<p><p>\u4e3a\u4e86\u91cd\u7f6e\u7ec4\u5408\u6846\uff0c\u53ef\u4ee5\u5c06<code>values<\/code>\u5c5e\u6027\u8bbe\u7f6e\u4e3a\u7a7a\uff0c\u7136\u540e\u6dfb\u52a0\u65b0\u7684\u9009\u9879\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def reset_combo_box():<\/p>\n<p>    # \u6e05\u7a7a\u73b0\u6709\u9009\u9879<\/p>\n<p>    combo_box[&#39;values&#39;] = ()<\/p>\n<p>    # \u6dfb\u52a0\u65b0\u7684\u9009\u9879<\/p>\n<p>    combo_box[&#39;values&#39;] = (&quot;\u65b0\u9009\u98791&quot;, &quot;\u65b0\u9009\u98792&quot;, &quot;\u65b0\u9009\u98793&quot;)<\/p>\n<p>    # \u6e05\u9664\u5f53\u524d\u9009\u62e9<\/p>\n<p>    combo_box.set(&#39;&#39;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6309\u94ae\u6765\u89e6\u53d1\u91cd\u7f6e\u64cd\u4f5c<\/strong><\/h2>\n<p>reset_button = tk.Button(root, text=&quot;\u91cd\u7f6e\u7ec4\u5408\u6846&quot;, command=reset_combo_box)<\/p>\n<p>reset_button.pack()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u542f\u52a8\u4e3b\u4e8b\u4ef6\u5faa\u73af<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u542f\u52a8\u4e3b\u4e8b\u4ef6\u5faa\u73af<\/p>\n<p>root.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5728Tkinter\u4e2d\uff0c\u91cd\u7f6e\u7ec4\u5408\u6846\u7684\u5173\u952e\u5728\u4e8e\u4f7f\u7528<code>values<\/code>\u5c5e\u6027\u7ba1\u7406\u9009\u9879\uff0c\u4ee5\u53ca\u901a\u8fc7<code>set<\/code>\u65b9\u6cd5\u6e05\u7a7a\u5f53\u524d\u7684\u9009\u62e9<\/strong>\u3002\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u5feb\u901f\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528PyQt\u91cd\u7f6e\u7ec4\u5408\u6846<\/h3>\n<\/p>\n<p><p>PyQt\u662fPython\u7684\u53e6\u4e00\u4e2a\u6d41\u884c\u7684GUI\u6846\u67b6\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c\u529f\u80fd\uff0c\u9002\u5408\u4e8e\u521b\u5efa\u590d\u6742\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5728PyQt\u4e2d\u91cd\u7f6e\u7ec4\u5408\u6846\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u521d\u59cb\u5316PyQt\u5e94\u7528\u7a0b\u5e8f\u548c\u7ec4\u5408\u6846<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2aPyQt\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5728\u5176\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u7ec4\u5408\u6846\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QApplication, QMainWindow, QComboBox, QPushButton, QVBoxLayout, QWidget<\/p>\n<p>import sys<\/p>\n<p>class ComboBoxResetExample(QMainWindow):<\/p>\n<p>    def __init__(self):<\/p>\n<p>        super().__init__()<\/p>\n<p>        # \u8bbe\u7f6e\u7a97\u53e3\u6807\u9898\u548c\u5927\u5c0f<\/p>\n<p>        self.setWindowTitle(&quot;\u7ec4\u5408\u6846\u91cd\u7f6e\u793a\u4f8b&quot;)<\/p>\n<p>        self.setGeometry(100, 100, 300, 200)<\/p>\n<p>        # \u521b\u5efa\u7ec4\u5408\u6846<\/p>\n<p>        self.combo_box = QComboBox(self)<\/p>\n<p>        self.combo_box.addItems([&quot;\u9009\u98791&quot;, &quot;\u9009\u98792&quot;, &quot;\u9009\u98793&quot;])<\/p>\n<p>        # \u521b\u5efa\u91cd\u7f6e\u6309\u94ae<\/p>\n<p>        self.reset_button = QPushButton(&quot;\u91cd\u7f6e\u7ec4\u5408\u6846&quot;, self)<\/p>\n<p>        self.reset_button.clicked.connect(self.reset_combo_box)<\/p>\n<p>        # \u5e03\u5c40<\/p>\n<p>        layout = QVBoxLayout()<\/p>\n<p>        layout.addWidget(self.combo_box)<\/p>\n<p>        layout.addWidget(self.reset_button)<\/p>\n<p>        container = QWidget()<\/p>\n<p>        container.setLayout(layout)<\/p>\n<p>        self.setCentralWidget(container)<\/p>\n<p>    def reset_combo_box(self):<\/p>\n<p>        # \u6e05\u7a7a\u73b0\u6709\u9009\u9879<\/p>\n<p>        self.combo_box.clear()<\/p>\n<p>        # \u6dfb\u52a0\u65b0\u7684\u9009\u9879<\/p>\n<p>        self.combo_box.addItems([&quot;\u65b0\u9009\u98791&quot;, &quot;\u65b0\u9009\u98792&quot;, &quot;\u65b0\u9009\u98793&quot;])<\/p>\n<h2><strong>\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f<\/strong><\/h2>\n<p>app = QApplication(sys.argv)<\/p>\n<p>window = ComboBoxResetExample()<\/p>\n<p>window.show()<\/p>\n<p>sys.exit(app.exec_())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u91cd\u7f6e\u7ec4\u5408\u6846<\/h4>\n<\/p>\n<p><p>\u5728PyQt\u4e2d\uff0c\u4f7f\u7528<code>clear()<\/code>\u65b9\u6cd5\u6e05\u7a7a\u7ec4\u5408\u6846\u7684\u6240\u6709\u9009\u9879\uff0c\u7136\u540e\u4f7f\u7528<code>addItems()<\/code>\u65b9\u6cd5\u6dfb\u52a0\u65b0\u7684\u9009\u9879\u3002\u901a\u8fc7\u4fe1\u53f7\u548c\u69fd\u673a\u5236\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6309\u94ae\u70b9\u51fb\u4e8b\u4ef6\u4e0e\u91cd\u7f6e\u529f\u80fd\u8fde\u63a5\u8d77\u6765\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528wxPython\u91cd\u7f6e\u7ec4\u5408\u6846<\/h3>\n<\/p>\n<p><p>wxPython\u662f\u53e6\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684GUI\u6846\u67b6\uff0c\u5b83\u4ee5\u5176\u8de8\u5e73\u53f0\u7684\u7279\u6027\u548c\u672c\u673a\u5916\u89c2\u800c\u8457\u79f0\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5728wxPython\u4e2d\u91cd\u7f6e\u7ec4\u5408\u6846\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u521d\u59cb\u5316wxPython\u5e94\u7528\u7a0b\u5e8f\u548c\u7ec4\u5408\u6846<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2awxPython\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5728\u5176\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u7ec4\u5408\u6846\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import wx<\/p>\n<p>class ComboBoxResetExample(wx.Frame):<\/p>\n<p>    def __init__(self, *args, kw):<\/p>\n<p>        super(ComboBoxResetExample, self).__init__(*args, kw)<\/p>\n<p>        # \u521b\u5efa\u9762\u677f<\/p>\n<p>        pnl = wx.Panel(self)<\/p>\n<p>        # \u521b\u5efa\u7ec4\u5408\u6846<\/p>\n<p>        self.combo_box = wx.ComboBox(pnl, choices=[&quot;\u9009\u98791&quot;, &quot;\u9009\u98792&quot;, &quot;\u9009\u98793&quot;], style=wx.CB_READONLY)<\/p>\n<p>        # \u521b\u5efa\u91cd\u7f6e\u6309\u94ae<\/p>\n<p>        reset_button = wx.Button(pnl, label=&quot;\u91cd\u7f6e\u7ec4\u5408\u6846&quot;)<\/p>\n<p>        reset_button.Bind(wx.EVT_BUTTON, self.reset_combo_box)<\/p>\n<p>        # \u5e03\u5c40<\/p>\n<p>        vbox = wx.BoxSizer(wx.VERTICAL)<\/p>\n<p>        vbox.Add(self.combo_box, flag=wx.EXPAND|wx.ALL, border=10)<\/p>\n<p>        vbox.Add(reset_button, flag=wx.EXPAND|wx.ALL, border=10)<\/p>\n<p>        pnl.SetSizer(vbox)<\/p>\n<p>        self.SetTitle(&#39;\u7ec4\u5408\u6846\u91cd\u7f6e\u793a\u4f8b&#39;)<\/p>\n<p>        self.Centre()<\/p>\n<p>    def reset_combo_box(self, event):<\/p>\n<p>        # \u6e05\u7a7a\u73b0\u6709\u9009\u9879<\/p>\n<p>        self.combo_box.Clear()<\/p>\n<p>        # \u6dfb\u52a0\u65b0\u7684\u9009\u9879<\/p>\n<p>        self.combo_box.AppendItems([&quot;\u65b0\u9009\u98791&quot;, &quot;\u65b0\u9009\u98792&quot;, &quot;\u65b0\u9009\u98793&quot;])<\/p>\n<p>        # \u6e05\u9664\u5f53\u524d\u9009\u62e9<\/p>\n<p>        self.combo_box.SetSelection(wx.NOT_FOUND)<\/p>\n<h2><strong>\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f<\/strong><\/h2>\n<p>app = wx.App(False)<\/p>\n<p>frm = ComboBoxResetExample(None)<\/p>\n<p>frm.Show()<\/p>\n<p>app.MainLoop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u91cd\u7f6e\u7ec4\u5408\u6846<\/h4>\n<\/p>\n<p><p>\u5728wxPython\u4e2d\uff0c\u901a\u8fc7<code>Clear()<\/code>\u65b9\u6cd5\u6e05\u7a7a\u7ec4\u5408\u6846\u7684\u9009\u9879\uff0c\u7136\u540e\u4f7f\u7528<code>AppendItems()<\/code>\u65b9\u6cd5\u6dfb\u52a0\u65b0\u7684\u9009\u9879\u3002\u5e76\u4e14\u901a\u8fc7<code>SetSelection(wx.NOT_FOUND)<\/code>\u6e05\u9664\u5f53\u524d\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>\u91cd\u7f6e\u7ec4\u5408\u6846\u7684\u6838\u5fc3\u5728\u4e8e\u6e05\u9664\u73b0\u6709\u9009\u9879\u5e76\u6dfb\u52a0\u65b0\u7684\u9009\u9879<\/strong>\u3002\u4e0d\u540c\u7684GUI\u6846\u67b6\u63d0\u4f9b\u4e86\u4e0d\u540c\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u4f46\u5927\u81f4\u601d\u8def\u76f8\u540c\uff1a\u6e05\u7a7a\u9009\u9879\u3001\u6dfb\u52a0\u65b0\u9879\u3001\u66f4\u65b0\u663e\u793a\u3002\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u53d6\u51b3\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\u590d\u6742\u6027\u548c\u5e73\u53f0\u9700\u6c42\u3002\u5728\u4f7f\u7528\u8fd9\u4e9b\u6846\u67b6\u65f6\uff0c\u7406\u89e3\u5b83\u4eec\u7684\u4e8b\u4ef6\u5904\u7406\u673a\u5236\u548c\u5e03\u5c40\u7ba1\u7406\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u8fd9\u5c06\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u8bbe\u8ba1\u548c\u5b9e\u73b0\u7528\u6237\u754c\u9762\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u4e09\u4e2a\u5e38\u7528\u7684Python GUI\u6846\u67b6\u7684\u793a\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u91cd\u7f6e\u7ec4\u5408\u6846\u7684\u57fa\u672c\u6b65\u9aa4\u548c\u601d\u8def\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u80fd\u591f\u5e2e\u52a9\u4f60\u5728\u5f00\u53d1Python\u5e94\u7528\u7a0b\u5e8f\u65f6\u66f4\u597d\u5730\u7ba1\u7406\u7ec4\u5408\u6846\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u91cd\u7f6e\u7ec4\u5408\u6846\u7684\u9009\u9879\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u7ec4\u5408\u6846\u7684\u503c\u4e3a\u9ed8\u8ba4\u503c\u6765\u91cd\u7f6e\u9009\u9879\u3002\u901a\u5e38\u4f7f\u7528<code>set<\/code>\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u5982\u679c\u7ec4\u5408\u6846\u7684\u9ed8\u8ba4\u503c\u662f&quot;\u8bf7\u9009\u62e9&quot;\uff0c\u90a3\u4e48\u53ef\u4ee5\u7528<code>combobox.set(&quot;\u8bf7\u9009\u62e9&quot;)<\/code>\u6765\u91cd\u7f6e\u5b83\u3002<\/p>\n<p><strong>\u5728Tkinter\u4e2d\u91cd\u7f6e\u7ec4\u5408\u6846\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u4f7f\u7528Tkinter\u65f6\uff0c\u91cd\u7f6e\u7ec4\u5408\u6846\u53ef\u4ee5\u901a\u8fc7\u6e05\u7a7a\u5f53\u524d\u9009\u62e9\u548c\u66f4\u65b0\u9009\u9879\u5217\u8868\u6765\u5b9e\u73b0\u3002\u53ef\u4ee5\u7528<code>combobox[&#39;values&#39;] = new_values<\/code>\u6765\u66f4\u65b0\u9009\u9879\uff0c\u540c\u65f6\u7528<code>combobox.set(&#39;&#39;)<\/code>\u6765\u6e05\u7a7a\u5f53\u524d\u9009\u62e9\u3002\u8fd9\u79cd\u65b9\u6cd5\u786e\u4fdd\u7528\u6237\u603b\u662f\u770b\u5230\u6700\u65b0\u7684\u9009\u9879\u3002<\/p>\n<p><strong>\u91cd\u7f6e\u7ec4\u5408\u6846\u540e\uff0c\u5982\u4f55\u786e\u4fdd\u66f4\u65b0\u754c\u9762\uff1f<\/strong><br \/>\u5728\u91cd\u7f6e\u7ec4\u5408\u6846\u540e\uff0c\u53ef\u4ee5\u8c03\u7528<code>update_idletasks()<\/code>\u65b9\u6cd5\u4ee5\u786e\u4fdd\u754c\u9762\u66f4\u65b0\u3002\u8fd9\u4e00\u65b9\u6cd5\u4f1a\u5f3a\u5236Tkinter\u5237\u65b0\u754c\u9762\uff0c\u786e\u4fdd\u7528\u6237\u770b\u5230\u6700\u65b0\u72b6\u6001\u3002\u6b64\u5916\uff0c\u8003\u8651\u5728\u91cd\u7f6e\u7ec4\u5408\u6846\u65f6\u8c03\u7528\u5176\u4ed6\u76f8\u5173\u63a7\u4ef6\u7684\u66f4\u65b0\u51fd\u6570\uff0c\u4ee5\u4fdd\u6301\u754c\u9762\u7684\u6574\u4f53\u4e00\u81f4\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u91cd\u7f6e\u7ec4\u5408\u6846\uff08ComboBox\uff09\u901a\u5e38\u6d89\u53ca\u6e05\u7a7a\u73b0\u6709\u7684\u9009\u9879\u5e76\u6dfb\u52a0\u65b0\u7684\u9009\u9879\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Pytho [&hellip;]","protected":false},"author":3,"featured_media":1019599,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1019593"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1019593"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1019593\/revisions"}],"predecessor-version":[{"id":1019603,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1019593\/revisions\/1019603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1019599"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1019593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1019593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1019593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}