{"id":1054975,"date":"2024-12-31T14:46:44","date_gmt":"2024-12-31T06:46:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1054975.html"},"modified":"2024-12-31T14:46:47","modified_gmt":"2024-12-31T06:46:47","slug":"python%e5%bd%93%e4%b8%ad%e5%a6%82%e4%bd%95%e9%9a%90%e8%97%8f%e6%96%87%e6%9c%ac%e6%a1%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1054975.html","title":{"rendered":"python\u5f53\u4e2d\u5982\u4f55\u9690\u85cf\u6587\u672c\u6846"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/9f777639-aa46-4652-94a2-c57ed87759ba.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5f53\u4e2d\u5982\u4f55\u9690\u85cf\u6587\u672c\u6846\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u9690\u85cf\u6587\u672c\u6846\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u4f7f\u7528Tkinter\u5e93\u3001\u4f7f\u7528PyQt\u5e93\u3001\u4f7f\u7528wxPython\u5e93\u3002<\/strong>\u5176\u4e2d\uff0c<strong>\u4f7f\u7528Tkinter\u5e93<\/strong>\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u5c55\u5f00\u5982\u4f55\u4f7f\u7528Tkinter\u5e93\u9690\u85cf\u6587\u672c\u6846\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Tkinter\u5e93<\/h3>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u4f7f\u7528Tkinter\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u521b\u5efaGUI\u5e94\u7528\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6539\u53d8\u6587\u672c\u6846\u7684\u53ef\u89c1\u6027\u5c5e\u6027\u6765\u9690\u85cf\u6216\u663e\u793a\u6587\u672c\u6846\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u521b\u5efa\u4e00\u4e2aTkinter\u7a97\u53e3<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2aTkinter\u7a97\u53e3\uff0c\u5e76\u5728\u7a97\u53e3\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6587\u672c\u6846\u548c\u4e00\u4e2a\u6309\u94ae\uff0c\u7528\u4e8e\u63a7\u5236\u6587\u672c\u6846\u7684\u663e\u793a\u548c\u9690\u85cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u9690\u85cf\u6587\u672c\u6846\u793a\u4f8b&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6587\u672c\u6846<\/strong><\/h2>\n<p>entry = tk.Entry(root)<\/p>\n<p>entry.pack(pady=10)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6309\u94ae<\/strong><\/h2>\n<p>button = tk.Button(root, text=&quot;\u9690\u85cf\u6587\u672c\u6846&quot;, command=lambda: toggle_entry(entry))<\/p>\n<p>button.pack(pady=10)<\/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><h4>2\u3001\u5b9a\u4e49\u9690\u85cf\u6587\u672c\u6846\u7684\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u6309\u94ae\uff0c\u5e76\u5c06\u5176\u7ed1\u5b9a\u5230\u4e00\u4e2a\u51fd\u6570<code>toggle_entry<\/code>\u3002\u6211\u4eec\u9700\u8981\u5b9a\u4e49\u8fd9\u4e2a\u51fd\u6570\u6765\u63a7\u5236\u6587\u672c\u6846\u7684\u663e\u793a\u548c\u9690\u85cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def toggle_entry(entry):<\/p>\n<p>    if entry.winfo_viewable():<\/p>\n<p>        entry.pack_forget()<\/p>\n<p>        button.config(text=&quot;\u663e\u793a\u6587\u672c\u6846&quot;)<\/p>\n<p>    else:<\/p>\n<p>        entry.pack()<\/p>\n<p>        button.config(text=&quot;\u9690\u85cf\u6587\u672c\u6846&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>entry.winfo_viewable()<\/code>\u6765\u68c0\u67e5\u6587\u672c\u6846\u662f\u5426\u53ef\u89c1\u3002\u5982\u679c\u6587\u672c\u6846\u53ef\u89c1\uff0c\u6211\u4eec\u4f7f\u7528<code>entry.pack_forget()<\/code>\u6765\u9690\u85cf\u5b83\uff0c\u5e76\u5c06\u6309\u94ae\u7684\u6587\u5b57\u6539\u4e3a\u201c\u663e\u793a\u6587\u672c\u6846\u201d\uff1b\u5982\u679c\u6587\u672c\u6846\u4e0d\u53ef\u89c1\uff0c\u6211\u4eec\u4f7f\u7528<code>entry.pack()<\/code>\u6765\u663e\u793a\u5b83\uff0c\u5e76\u5c06\u6309\u94ae\u7684\u6587\u5b57\u6539\u4e3a\u201c\u9690\u85cf\u6587\u672c\u6846\u201d\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u5b8c\u6574\u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def toggle_entry(entry):<\/p>\n<p>    if entry.winfo_viewable():<\/p>\n<p>        entry.pack_forget()<\/p>\n<p>        button.config(text=&quot;\u663e\u793a\u6587\u672c\u6846&quot;)<\/p>\n<p>    else:<\/p>\n<p>        entry.pack()<\/p>\n<p>        button.config(text=&quot;\u9690\u85cf\u6587\u672c\u6846&quot;)<\/p>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u9690\u85cf\u6587\u672c\u6846\u793a\u4f8b&quot;)<\/p>\n<p>entry = tk.Entry(root)<\/p>\n<p>entry.pack(pady=10)<\/p>\n<p>button = tk.Button(root, text=&quot;\u9690\u85cf\u6587\u672c\u6846&quot;, command=lambda: toggle_entry(entry))<\/p>\n<p>button.pack(pady=10)<\/p>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528PyQt\u5e93<\/h3>\n<\/p>\n<p><p>PyQt\u662fPython\u7ed1\u5b9a\u7684Qt\u5e93\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u8de8\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528PyQt\u6765\u9690\u85cf\u6587\u672c\u6846\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5PyQt\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5PyQt\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyQt5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u4e00\u4e2aPyQt\u7a97\u53e3<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2aPyQt\u7a97\u53e3\uff0c\u5e76\u5728\u7a97\u53e3\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6587\u672c\u6846\u548c\u4e00\u4e2a\u6309\u94ae\uff0c\u7528\u4e8e\u63a7\u5236\u6587\u672c\u6846\u7684\u663e\u793a\u548c\u9690\u85cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QLineEdit, QPushButton<\/p>\n<p>app = QApplication([])<\/p>\n<p>window = QWidget()<\/p>\n<p>window.setWindowTitle(&quot;\u9690\u85cf\u6587\u672c\u6846\u793a\u4f8b&quot;)<\/p>\n<p>layout = QVBoxLayout()<\/p>\n<p>entry = QLineEdit()<\/p>\n<p>layout.addWidget(entry)<\/p>\n<p>button = QPushButton(&quot;\u9690\u85cf\u6587\u672c\u6846&quot;)<\/p>\n<p>layout.addWidget(button)<\/p>\n<p>window.setLayout(layout)<\/p>\n<p>window.show()<\/p>\n<p>app.exec_()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u5b9a\u4e49\u9690\u85cf\u6587\u672c\u6846\u7684\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u6309\u94ae\uff0c\u5e76\u5c06\u5176\u7ed1\u5b9a\u5230\u4e00\u4e2a\u51fd\u6570<code>toggle_entry<\/code>\u3002\u6211\u4eec\u9700\u8981\u5b9a\u4e49\u8fd9\u4e2a\u51fd\u6570\u6765\u63a7\u5236\u6587\u672c\u6846\u7684\u663e\u793a\u548c\u9690\u85cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def toggle_entry():<\/p>\n<p>    if entry.isVisible():<\/p>\n<p>        entry.hide()<\/p>\n<p>        button.setText(&quot;\u663e\u793a\u6587\u672c\u6846&quot;)<\/p>\n<p>    else:<\/p>\n<p>        entry.show()<\/p>\n<p>        button.setText(&quot;\u9690\u85cf\u6587\u672c\u6846&quot;)<\/p>\n<p>button.clicked.connect(toggle_entry)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u5b8c\u6574\u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QLineEdit, QPushButton<\/p>\n<p>app = QApplication([])<\/p>\n<p>window = QWidget()<\/p>\n<p>window.setWindowTitle(&quot;\u9690\u85cf\u6587\u672c\u6846\u793a\u4f8b&quot;)<\/p>\n<p>layout = QVBoxLayout()<\/p>\n<p>entry = QLineEdit()<\/p>\n<p>layout.addWidget(entry)<\/p>\n<p>button = QPushButton(&quot;\u9690\u85cf\u6587\u672c\u6846&quot;)<\/p>\n<p>layout.addWidget(button)<\/p>\n<p>def toggle_entry():<\/p>\n<p>    if entry.isVisible():<\/p>\n<p>        entry.hide()<\/p>\n<p>        button.setText(&quot;\u663e\u793a\u6587\u672c\u6846&quot;)<\/p>\n<p>    else:<\/p>\n<p>        entry.show()<\/p>\n<p>        button.setText(&quot;\u9690\u85cf\u6587\u672c\u6846&quot;)<\/p>\n<p>button.clicked.connect(toggle_entry)<\/p>\n<p>window.setLayout(layout)<\/p>\n<p>window.show()<\/p>\n<p>app.exec_()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528wxPython\u5e93<\/h3>\n<\/p>\n<p><p>wxPython\u662fPython\u7ed1\u5b9a\u7684wxWidgets\u5e93\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u8de8\u5e73\u53f0\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528wxPython\u6765\u9690\u85cf\u6587\u672c\u6846\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5wxPython\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5wxPython\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install wxPython<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u4e00\u4e2awxPython\u7a97\u53e3<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2awxPython\u7a97\u53e3\uff0c\u5e76\u5728\u7a97\u53e3\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6587\u672c\u6846\u548c\u4e00\u4e2a\u6309\u94ae\uff0c\u7528\u4e8e\u63a7\u5236\u6587\u672c\u6846\u7684\u663e\u793a\u548c\u9690\u85cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import wx<\/p>\n<p>class MyFrame(wx.Frame):<\/p>\n<p>    def __init__(self):<\/p>\n<p>        super().__init__(parent=None, title=&quot;\u9690\u85cf\u6587\u672c\u6846\u793a\u4f8b&quot;)<\/p>\n<p>        panel = wx.Panel(self)<\/p>\n<p>        self.entry = wx.TextCtrl(panel, pos=(10, 10), size=(200, 25))<\/p>\n<p>        self.button = wx.Button(panel, label=&quot;\u9690\u85cf\u6587\u672c\u6846&quot;, pos=(10, 50))<\/p>\n<p>        self.button.Bind(wx.EVT_BUTTON, self.toggle_entry)<\/p>\n<p>        self.Show()<\/p>\n<p>    def toggle_entry(self, event):<\/p>\n<p>        if self.entry.IsShown():<\/p>\n<p>            self.entry.Hide()<\/p>\n<p>            self.button.SetLabel(&quot;\u663e\u793a\u6587\u672c\u6846&quot;)<\/p>\n<p>        else:<\/p>\n<p>            self.entry.Show()<\/p>\n<p>            self.button.SetLabel(&quot;\u9690\u85cf\u6587\u672c\u6846&quot;)<\/p>\n<p>app = wx.App(False)<\/p>\n<p>frame = MyFrame()<\/p>\n<p>app.MainLoop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u6309\u94ae\uff0c\u5e76\u5c06\u5176\u7ed1\u5b9a\u5230\u4e00\u4e2a\u51fd\u6570<code>toggle_entry<\/code>\u3002\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>self.entry.IsShown()<\/code>\u6765\u68c0\u67e5\u6587\u672c\u6846\u662f\u5426\u53ef\u89c1\u3002\u5982\u679c\u6587\u672c\u6846\u53ef\u89c1\uff0c\u6211\u4eec\u4f7f\u7528<code>self.entry.Hide()<\/code>\u6765\u9690\u85cf\u5b83\uff0c\u5e76\u5c06\u6309\u94ae\u7684\u6587\u5b57\u6539\u4e3a\u201c\u663e\u793a\u6587\u672c\u6846\u201d\uff1b\u5982\u679c\u6587\u672c\u6846\u4e0d\u53ef\u89c1\uff0c\u6211\u4eec\u4f7f\u7528<code>self.entry.Show()<\/code>\u6765\u663e\u793a\u5b83\uff0c\u5e76\u5c06\u6309\u94ae\u7684\u6587\u5b57\u6539\u4e3a\u201c\u9690\u85cf\u6587\u672c\u6846\u201d\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0a\u662f\u4f7f\u7528Tkinter\u3001PyQt\u548cwxPython\u5e93\u5728Python\u4e2d\u9690\u85cf\u6587\u672c\u6846\u7684\u8be6\u7ec6\u65b9\u6cd5\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u5e93\u548c\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u6587\u672c\u6846\u7684\u9690\u85cf\u529f\u80fd\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u82e5\u4f7f\u7528Tkinter\u5e93\u521b\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>pack_forget()<\/code>\u6216<code>grid_forget()<\/code>\u65b9\u6cd5\u6765\u9690\u85cf\u6587\u672c\u6846\u3002\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a\u9996\u5148\u786e\u4fdd\u4f60\u5df2\u7ecf\u521b\u5efa\u4e86\u6587\u672c\u6846\u7684\u5b9e\u4f8b\uff0c\u7136\u540e\u901a\u8fc7\u76f8\u5e94\u7684\u65b9\u6cd5\u9690\u85cf\u5b83\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import tkinter as tk\n\nroot = tk.Tk()\nentry = tk.Entry(root)\nentry.pack()\n\n# \u9690\u85cf\u6587\u672c\u6846\nentry.pack_forget()\n\nroot.mainloop()\n<\/code><\/pre>\n<p><strong>\u5728\u4f7f\u7528Tkinter\u65f6\uff0c\u9690\u85cf\u6587\u672c\u6846\u4f1a\u5f71\u54cd\u5230\u5e03\u5c40\u5417\uff1f<\/strong><br \/>\u9690\u85cf\u6587\u672c\u6846\u901a\u5e38\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u63a7\u4ef6\u7684\u5e03\u5c40\uff0c\u5c24\u5176\u662f\u5728\u4f7f\u7528<code>pack()<\/code>\u6216<code>grid()<\/code>\u5e03\u5c40\u7ba1\u7406\u5668\u65f6\u3002\u9690\u85cf\u540e\u7684\u7a7a\u95f4\u4f1a\u88ab\u5176\u4ed6\u63a7\u4ef6\u6240\u5360\u636e\uff0c\u4ece\u800c\u4fdd\u6301\u754c\u9762\u7684\u6574\u6d01\u3002\u7136\u800c\uff0c\u82e5\u9700\u8981\u91cd\u65b0\u663e\u793a\u9690\u85cf\u7684\u6587\u672c\u6846\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pack()<\/code>\u6216<code>grid()<\/code>\u65b9\u6cd5\u91cd\u65b0\u5e03\u5c40\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u901a\u8fc7\u6761\u4ef6\u89e6\u53d1\u9690\u85cf\u6587\u672c\u6846\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u4e8b\u4ef6\u7ed1\u5b9a\u6216\u6761\u4ef6\u5224\u65ad\u6765\u5b9e\u73b0\u9690\u85cf\u6587\u672c\u6846\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728\u6309\u94ae\u70b9\u51fb\u4e8b\u4ef6\u4e2d\u6dfb\u52a0\u903b\u8f91\uff0c\u4f7f\u5f97\u6587\u672c\u6846\u5728\u7279\u5b9a\u6761\u4ef6\u4e0b\u88ab\u9690\u85cf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">import tkinter as tk\n\ndef toggle_entry():\n    if entry.winfo_ismapped():\n        entry.pack_forget()\n    else:\n        entry.pack()\n\nroot = tk.Tk()\nentry = tk.Entry(root)\nentry.pack()\n\ntoggle_button = tk.Button(root, text=&quot;Toggle Entry&quot;, command=toggle_entry)\ntoggle_button.pack()\n\nroot.mainloop()\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u70b9\u51fb\u6309\u94ae\u53ef\u4ee5\u5b9e\u73b0\u6587\u672c\u6846\u7684\u663e\u793a\u4e0e\u9690\u85cf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u9690\u85cf\u6587\u672c\u6846\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u4f7f\u7528Tkinter\u5e93\u3001\u4f7f\u7528PyQt\u5e93\u3001\u4f7f\u7528wxPython\u5e93\u3002\u5176\u4e2d\uff0c\u4f7f [&hellip;]","protected":false},"author":3,"featured_media":1054979,"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\/1054975"}],"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=1054975"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1054975\/revisions"}],"predecessor-version":[{"id":1054981,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1054975\/revisions\/1054981"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1054979"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1054975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1054975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1054975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}