{"id":1044996,"date":"2024-12-31T13:19:23","date_gmt":"2024-12-31T05:19:23","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1044996.html"},"modified":"2024-12-31T13:19:27","modified_gmt":"2024-12-31T05:19:27","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e5%81%9a%e7%aa%97%e5%8f%a3%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1044996.html","title":{"rendered":"\u5982\u4f55\u7528python\u505a\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/6c7156da-1351-4ff5-bbd1-dbade70b12c1.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528python\u505a\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u7528Python\u505a\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u7684\u6b65\u9aa4\u4e3b\u8981\u5305\u62ec\u9009\u62e9\u5408\u9002\u7684GUI\u6846\u67b6\u3001\u8bbe\u8ba1\u7528\u6237\u754c\u9762\u3001\u7f16\u5199\u4e8b\u4ef6\u5904\u7406\u4ee3\u7801\u3001\u8c03\u8bd5\u548c\u4f18\u5316\u7a0b\u5e8f\u3001\u6253\u5305\u548c\u5206\u53d1\u5e94\u7528\u7b49\u3002<\/strong> \u5176\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684GUI\u6846\u67b6\u662f\u5173\u952e\uff0c\u56e0\u4e3a\u4e0d\u540c\u6846\u67b6\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\u3002\u4e00\u4e2a\u5e38\u7528\u7684\u6846\u67b6\u662fTkinter\uff0c\u5b83\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u5177\u6709\u7b80\u5355\u6613\u7528\u3001\u8de8\u5e73\u53f0\u652f\u6301\u3001\u793e\u533a\u8d44\u6e90\u4e30\u5bcc\u7b49\u4f18\u70b9\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Tkinter\u6765\u5f00\u53d1\u4e00\u4e2a\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u9009\u62e9\u5408\u9002\u7684GUI\u6846\u67b6<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cdGUI\u6846\u67b6\uff0c\u5982Tkinter\u3001PyQt\u3001Kivy\u3001wxPython\u7b49\uff0c\u6bcf\u4e2a\u6846\u67b6\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u9009\u62e9\u5408\u9002\u7684GUI\u6846\u67b6\u662f\u5f00\u53d1\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u7684\u7b2c\u4e00\u6b65\u3002<\/p>\n<\/p>\n<p><h4>Tkinter<\/h4>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u96c6\u6210\u5728Python\u6807\u51c6\u5e93\u4e2d\uff0c\u5b89\u88c5Python\u540e\u9ed8\u8ba4\u5c31\u53ef\u4ee5\u4f7f\u7528\u3002\u5b83\u9002\u7528\u4e8e\u5f00\u53d1\u7b80\u5355\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u5177\u6709\u7b80\u5355\u6613\u7528\u3001\u8de8\u5e73\u53f0\u652f\u6301\u7b49\u4f18\u70b9\u3002<\/p>\n<\/p>\n<p><h4>PyQt<\/h4>\n<\/p>\n<p><p>PyQt\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684GUI\u6846\u67b6\uff0c\u57fa\u4e8eQt\u5e93\uff0c\u9002\u7528\u4e8e\u5f00\u53d1\u590d\u6742\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002PyQt\u5177\u6709\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c\u529f\u80fd\uff0c\u4f46\u5b66\u4e60\u66f2\u7ebf\u8f83\u9661\uff0c\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><h4>Kivy<\/h4>\n<\/p>\n<p><p>Kivy\u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d1\u591a\u70b9\u89e6\u63a7\u5e94\u7528\u7a0b\u5e8f\u7684\u6846\u67b6\uff0c\u9002\u7528\u4e8e\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u3002\u5b83\u7684\u8bbe\u8ba1\u7406\u5ff5\u66f4\u52a0\u73b0\u4ee3\uff0c\u4f46\u4e0d\u5982Tkinter\u548cPyQt\u90a3\u6837\u6210\u719f\u3002<\/p>\n<\/p>\n<p><h4>wxPython<\/h4>\n<\/p>\n<p><p>wxPython\u662f\u57fa\u4e8ewxWidgets\u5e93\u7684Python\u5305\u88c5\u5668\uff0c\u9002\u7528\u4e8e\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u7684\u63a7\u4ef6\u548c\u529f\u80fd\u4e30\u5bcc\uff0c\u4f46\u5b66\u4e60\u66f2\u7ebf\u8f83\u9661\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u8bbe\u8ba1\u7528\u6237\u754c\u9762<\/h3>\n<\/p>\n<p><p>\u8bbe\u8ba1\u7528\u6237\u754c\u9762\u662f\u5f00\u53d1\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u7684\u91cd\u8981\u73af\u8282\u3002\u7528\u6237\u754c\u9762\u5e94\u8be5\u7b80\u6d01\u3001\u7f8e\u89c2\u3001\u6613\u7528\uff0c\u80fd\u591f\u6709\u6548\u5730\u4e0e\u7528\u6237\u4ea4\u4e92\u3002\u4e0b\u9762\u4ee5Tkinter\u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u5982\u4f55\u8bbe\u8ba1\u7528\u6237\u754c\u9762\u3002<\/p>\n<\/p>\n<p><h4>\u521b\u5efa\u4e3b\u7a97\u53e3<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\uff0c\u8fd9\u662f\u7528\u6237\u754c\u9762\u7684\u57fa\u7840\u3002\u53ef\u4ee5\u4f7f\u7528Tkinter\u7684<code>Tk<\/code>\u7c7b\u6765\u521b\u5efa\u4e3b\u7a97\u53e3\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;My Application&quot;)<\/p>\n<p>root.geometry(&quot;400x300&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6dfb\u52a0\u63a7\u4ef6<\/h4>\n<\/p>\n<p><p>\u5728\u4e3b\u7a97\u53e3\u4e2d\u6dfb\u52a0\u63a7\u4ef6\uff0c\u5982\u6309\u94ae\u3001\u6807\u7b7e\u3001\u6587\u672c\u6846\u7b49\u3002\u53ef\u4ee5\u4f7f\u7528Tkinter\u7684\u5404\u79cd\u63a7\u4ef6\u7c7b\u6765\u521b\u5efa\u5e76\u6dfb\u52a0\u63a7\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">label = tk.Label(root, text=&quot;Hello, World!&quot;)<\/p>\n<p>label.pack()<\/p>\n<p>button = tk.Button(root, text=&quot;Click Me&quot;)<\/p>\n<p>button.pack()<\/p>\n<p>entry = tk.Entry(root)<\/p>\n<p>entry.pack()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5e03\u5c40\u7ba1\u7406<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u5e03\u5c40\u7ba1\u7406\u5668\u6765\u63a7\u5236\u63a7\u4ef6\u5728\u7a97\u53e3\u4e2d\u7684\u4f4d\u7f6e\u3002Tkinter\u63d0\u4f9b\u4e86\u4e09\u79cd\u5e03\u5c40\u7ba1\u7406\u5668\uff1apack\u3001grid\u3001place\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">label.pack(padx=10, pady=10)<\/p>\n<p>button.pack(padx=10, pady=10)<\/p>\n<p>entry.pack(padx=10, pady=10)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u7f16\u5199\u4e8b\u4ef6\u5904\u7406\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u4e8b\u4ef6\u5904\u7406\u662f\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u7684\u6838\u5fc3\uff0c\u7528\u6237\u4e0e\u5e94\u7528\u7a0b\u5e8f\u7684\u4ea4\u4e92\u901a\u8fc7\u4e8b\u4ef6\u5904\u7406\u6765\u5b9e\u73b0\u3002\u53ef\u4ee5\u4e3a\u63a7\u4ef6\u7ed1\u5b9a\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\uff0c\u5904\u7406\u7528\u6237\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>\u7ed1\u5b9a\u4e8b\u4ef6<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Tkinter\u7684<code>bind<\/code>\u65b9\u6cd5\u53ef\u4ee5\u4e3a\u63a7\u4ef6\u7ed1\u5b9a\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002\u4f8b\u5982\uff0c\u4e3a\u6309\u94ae\u7ed1\u5b9a\u70b9\u51fb\u4e8b\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def on_button_click():<\/p>\n<p>    print(&quot;Button clicked!&quot;)<\/p>\n<p>button.config(command=on_button_click)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5904\u7406\u4e8b\u4ef6<\/h4>\n<\/p>\n<p><p>\u5728\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u4e2d\u7f16\u5199\u5904\u7406\u903b\u8f91\uff0c\u4f8b\u5982\u66f4\u65b0\u754c\u9762\u3001\u6267\u884c\u64cd\u4f5c\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def on_button_click():<\/p>\n<p>    text = entry.get()<\/p>\n<p>    label.config(text=text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u8c03\u8bd5\u548c\u4f18\u5316\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u8c03\u8bd5\u548c\u4f18\u5316\u662f\u5f00\u53d1\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u7684\u91cd\u8981\u73af\u8282\u3002\u901a\u8fc7\u8c03\u8bd5\u53ef\u4ee5\u53d1\u73b0\u5e76\u4fee\u590d\u7a0b\u5e8f\u4e2d\u7684\u9519\u8bef\uff0c\u901a\u8fc7\u4f18\u5316\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>\u8c03\u8bd5<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u5982pdb\u3001logging\u7b49\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8c03\u8bd5\u7a0b\u5e8f\uff0c\u53d1\u73b0\u5e76\u4fee\u590d\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import logging<\/p>\n<p>logging.basicConfig(level=logging.DEBUG)<\/p>\n<p>def on_button_click():<\/p>\n<p>    text = entry.get()<\/p>\n<p>    logging.debug(f&quot;Entry text: {text}&quot;)<\/p>\n<p>    label.config(text=text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f18\u5316<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u4f18\u5316\u4ee3\u7801\u548c\u754c\u9762\u8bbe\u8ba1\uff0c\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u3002\u4f8b\u5982\uff0c\u907f\u514d\u9891\u7e41\u5237\u65b0\u754c\u9762\u3001\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u8ba1\u7b97\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def on_button_click():<\/p>\n<p>    text = entry.get()<\/p>\n<p>    if text:<\/p>\n<p>        label.config(text=text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6253\u5305\u548c\u5206\u53d1\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u6253\u5305\u548c\u5206\u53d1\u662f\u5c06\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u7ed9\u7528\u6237\u7684\u91cd\u8981\u73af\u8282\u3002\u901a\u8fc7\u6253\u5305\u5de5\u5177\u53ef\u4ee5\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4fbf\u4e8e\u7528\u6237\u5b89\u88c5\u548c\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528pyinstaller\u6253\u5305<\/h4>\n<\/p>\n<p><p>pyinstaller\u662f\u4e00\u4e2a\u5e38\u7528\u7684\u6253\u5305\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install pyinstaller<\/p>\n<p>pyinstaller --onefile my_application.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5206\u53d1\u5e94\u7528<\/h4>\n<\/p>\n<p><p>\u6253\u5305\u5b8c\u6210\u540e\uff0c\u5c06\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u5206\u53d1\u7ed9\u7528\u6237\u3002\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u3001U\u76d8\u7b49\u65b9\u5f0f\u5c06\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u7ed9\u7528\u6237\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u7528Python\u5f00\u53d1\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u662f\u4e00\u4e2a\u7efc\u5408\u6027\u7684\u5de5\u4f5c\uff0c\u9700\u8981\u638c\u63e1GUI\u6846\u67b6\u7684\u4f7f\u7528\u3001\u7528\u6237\u754c\u9762\u8bbe\u8ba1\u3001\u4e8b\u4ef6\u5904\u7406\u3001\u8c03\u8bd5\u548c\u4f18\u5316\u3001\u6253\u5305\u548c\u5206\u53d1\u7b49\u6280\u80fd\u3002\u901a\u8fc7\u9009\u62e9\u5408\u9002\u7684GUI\u6846\u67b6\uff0c\u8bbe\u8ba1\u7f8e\u89c2\u6613\u7528\u7684\u7528\u6237\u754c\u9762\uff0c\u7f16\u5199\u9ad8\u6548\u7684\u4e8b\u4ef6\u5904\u7406\u4ee3\u7801\uff0c\u8c03\u8bd5\u548c\u4f18\u5316\u7a0b\u5e8f\uff0c\u6700\u7ec8\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u53ef\u4ee5\u5f00\u53d1\u51fa\u529f\u80fd\u5f3a\u5927\u3001\u7528\u6237\u4f53\u9a8c\u826f\u597d\u7684\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5e2e\u52a9\u5927\u5bb6\u4e86\u89e3\u7528Python\u5f00\u53d1\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u672c\u6b65\u9aa4\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u4f7f\u7528Python\u521b\u5efa\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u54ea\u4e9b\u57fa\u7840\u77e5\u8bc6\uff1f<\/strong><br \/>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u4e86\u89e3Python\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u6570\u636e\u7ed3\u6784\u662f\u5fc5\u8981\u7684\u3002\u6b64\u5916\uff0c\u719f\u6089\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u7684\u6982\u5ff5\u5c06\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u3002\u719f\u6089\u67d0\u4e9b\u5e93\uff0c\u5982Tkinter\u3001PyQt\u6216wxPython\uff0c\u53ef\u4ee5\u8ba9\u4f60\u66f4\u8f7b\u677e\u5730\u6784\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p><strong>Python\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5e93\u6765\u521b\u5efa\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u3002Tkinter\u662fPython\u5185\u7f6e\u7684\u6807\u51c6\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002PyQt\u548cPySide\u662f\u57fa\u4e8eQt\u6846\u67b6\u7684\u5e93\uff0c\u529f\u80fd\u5f3a\u5927\uff0c\u9002\u5408\u5f00\u53d1\u590d\u6742\u7684\u5e94\u7528\u3002\u8fd8\u6709wxPython\uff0c\u5b83\u63d0\u4f9b\u539f\u751f\u7a97\u53e3\u7684\u5916\u89c2\u548c\u611f\u89c9\uff0c\u9002\u5408\u9700\u8981\u8de8\u5e73\u53f0\u652f\u6301\u7684\u9879\u76ee\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u8bd5\u548c\u6d4b\u8bd5\u6211\u7684Python\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\uff1f<\/strong><br \/>\u8c03\u8bd5Python\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177\u5982Pdb\u6216IDE\u5185\u7f6e\u7684\u8c03\u8bd5\u5668\u3002\u8fd0\u884c\u7a0b\u5e8f\u65f6\uff0c\u5173\u6ce8\u63a7\u5236\u53f0\u8f93\u51fa\u7684\u9519\u8bef\u4fe1\u606f\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u95ee\u9898\u3002\u6d4b\u8bd5\u65b9\u9762\uff0c\u4f7f\u7528unittest\u6216pytest\u7b49\u6846\u67b6\u53ef\u4ee5\u8fdb\u884c\u5355\u5143\u6d4b\u8bd5\uff0c\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u5404\u4e2a\u90e8\u5206\u6b63\u5e38\u8fd0\u884c\u3002\u6b64\u5916\uff0c\u8fdb\u884c\u7528\u6237\u6d4b\u8bd5\u4e5f\u662f\u4f18\u5316\u7528\u6237\u4f53\u9a8c\u7684\u91cd\u8981\u73af\u8282\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u505a\u7a97\u53e3\u5e94\u7528\u7a0b\u5e8f\u7684\u6b65\u9aa4\u4e3b\u8981\u5305\u62ec\u9009\u62e9\u5408\u9002\u7684GUI\u6846\u67b6\u3001\u8bbe\u8ba1\u7528\u6237\u754c\u9762\u3001\u7f16\u5199\u4e8b\u4ef6\u5904\u7406\u4ee3\u7801\u3001\u8c03\u8bd5\u548c\u4f18\u5316\u7a0b\u5e8f [&hellip;]","protected":false},"author":3,"featured_media":1045010,"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\/1044996"}],"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=1044996"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1044996\/revisions"}],"predecessor-version":[{"id":1045011,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1044996\/revisions\/1045011"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1045010"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1044996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1044996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1044996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}