{"id":1029652,"date":"2024-12-31T11:10:15","date_gmt":"2024-12-31T03:10:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1029652.html"},"modified":"2024-12-31T11:10:18","modified_gmt":"2024-12-31T03:10:18","slug":"python%e5%a6%82%e4%bd%95%e5%be%aa%e7%8e%af%e5%87%ba%e5%a4%9a%e4%b8%aa%e7%bc%96%e8%be%91%e6%a1%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1029652.html","title":{"rendered":"python\u5982\u4f55\u5faa\u73af\u51fa\u591a\u4e2a\u7f16\u8f91\u6846"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/f22725d9-1938-4dd3-bf7c-60a79ab4b6a1.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u5faa\u73af\u51fa\u591a\u4e2a\u7f16\u8f91\u6846\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u5faa\u73af\u51fa\u591a\u4e2a\u7f16\u8f91\u6846\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u4e0d\u540c\u7684GUI\u5de5\u5177\u5305\uff0c\u4f8b\u5982Tkinter\u3001PyQt\u3001wxPython\u7b49\u3002<\/strong> \u5176\u4e2d\uff0cTkinter\u662fPython\u5185\u7f6e\u7684\u6807\u51c6GUI\u5e93\uff0c\u4f7f\u7528\u65b9\u4fbf\u4e14\u529f\u80fd\u5f3a\u5927\u3002\u901a\u8fc7Tkinter\uff0c\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\u3002<strong>\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Tkinter\u5faa\u73af\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846<\/strong>\uff0c\u5305\u62ec\u521b\u5efa\u4e3b\u7a97\u53e3\u3001\u4f7f\u7528\u5faa\u73af\u6dfb\u52a0\u7f16\u8f91\u6846\u3001\u4ee5\u53ca\u8bbe\u7f6e\u7f16\u8f91\u6846\u7684\u5c5e\u6027\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u521b\u5efa\u4e3b\u7a97\u53e3<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Tkinter\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\u3002\u4e3b\u7a97\u53e3\u662f\u6240\u6709\u63a7\u4ef6\uff08\u5982\u7f16\u8f91\u6846\u3001\u6309\u94ae\u7b49\uff09\u7684\u5bb9\u5668\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u591a\u4e2a\u7f16\u8f91\u6846\u793a\u4f8b&quot;)<\/p>\n<p>root.geometry(&quot;400x300&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86Tkinter\u6a21\u5757\uff0c\u7136\u540e\u521b\u5efa\u4e86\u4e00\u4e2a\u4e3b\u7a97\u53e3\u3002<code>root.title<\/code>\u65b9\u6cd5\u7528\u4e8e\u8bbe\u7f6e\u7a97\u53e3\u7684\u6807\u9898\uff0c<code>root.geometry<\/code>\u65b9\u6cd5\u7528\u4e8e\u8bbe\u7f6e\u7a97\u53e3\u7684\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5faa\u73af\u6dfb\u52a0\u7f16\u8f91\u6846<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u5faa\u73af\u5728\u4e3b\u7a97\u53e3\u4e2d\u6dfb\u52a0\u591a\u4e2a\u7f16\u8f91\u6846\u3002\u7f16\u8f91\u6846\u5728Tkinter\u4e2d\u662f\u901a\u8fc7<code>tk.Entry<\/code>\u7c7b\u6765\u521b\u5efa\u7684\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2afor\u5faa\u73af\u6765\u521b\u5efa\u5e76\u653e\u7f6e\u591a\u4e2a\u7f16\u8f91\u6846\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u7f16\u8f91\u6846\u7684\u6570\u91cf<\/p>\n<p>num_entries = 5<\/p>\n<h2><strong>\u5faa\u73af\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846<\/strong><\/h2>\n<p>entries = []<\/p>\n<p>for i in range(num_entries):<\/p>\n<p>    entry = tk.Entry(root)<\/p>\n<p>    entry.pack(pady=5)  # \u4f7f\u7528pack\u65b9\u6cd5\u653e\u7f6e\u7f16\u8f91\u6846\uff0c\u5e76\u8bbe\u7f6e\u5782\u76f4\u95f4\u8ddd<\/p>\n<p>    entries.append(entry)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5b9a\u4e49\u4e86\u8981\u521b\u5efa\u7684\u7f16\u8f91\u6846\u7684\u6570\u91cf<code>num_entries<\/code>\uff0c\u7136\u540e\u4f7f\u7528\u4e00\u4e2afor\u5faa\u73af\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\u3002\u6bcf\u4e2a\u7f16\u8f91\u6846\u4f7f\u7528<code>tk.Entry<\/code>\u7c7b\u521b\u5efa\uff0c\u5e76\u901a\u8fc7<code>pack<\/code>\u65b9\u6cd5\u653e\u7f6e\u5728\u4e3b\u7a97\u53e3\u4e2d\u3002\u6211\u4eec\u8fd8\u5c06\u6bcf\u4e2a\u7f16\u8f91\u6846\u6dfb\u52a0\u5230\u4e00\u4e2a\u5217\u8868<code>entries<\/code>\u4e2d\uff0c\u4ee5\u4fbf\u540e\u7eed\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u8bbe\u7f6e\u7f16\u8f91\u6846\u7684\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u521b\u5efa\u548c\u653e\u7f6e\u7f16\u8f91\u6846\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u7f16\u8f91\u6846\u7684\u5404\u79cd\u5c5e\u6027\uff0c\u4f8b\u5982\u9ed8\u8ba4\u6587\u672c\u3001\u5bbd\u5ea6\u3001\u80cc\u666f\u989c\u8272\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for i, entry in enumerate(entries):<\/p>\n<p>    entry.insert(0, f&quot;\u7f16\u8f91\u6846 {i+1}&quot;)  # \u8bbe\u7f6e\u9ed8\u8ba4\u6587\u672c<\/p>\n<p>    entry.config(width=30, bg=&quot;lightyellow&quot;)  # \u8bbe\u7f6e\u5bbd\u5ea6\u548c\u80cc\u666f\u989c\u8272<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>insert<\/code>\u65b9\u6cd5\u8bbe\u7f6e\u4e86\u6bcf\u4e2a\u7f16\u8f91\u6846\u7684\u9ed8\u8ba4\u6587\u672c\uff0c\u4f7f\u7528<code>config<\/code>\u65b9\u6cd5\u8bbe\u7f6e\u4e86\u7f16\u8f91\u6846\u7684\u5bbd\u5ea6\u548c\u80cc\u666f\u989c\u8272\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u7f16\u8f91\u6846\u7684\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u83b7\u53d6\u6216\u5904\u7406\u7f16\u8f91\u6846\u4e2d\u7684\u5185\u5bb9\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e2a\u6309\u94ae\uff0c\u5f53\u7528\u6237\u70b9\u51fb\u6309\u94ae\u65f6\uff0c\u83b7\u53d6\u6240\u6709\u7f16\u8f91\u6846\u4e2d\u7684\u5185\u5bb9\u5e76\u663e\u793a\u51fa\u6765\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def show_entries():<\/p>\n<p>    for i, entry in enumerate(entries):<\/p>\n<p>        print(f&quot;\u7f16\u8f91\u6846 {i+1}: {entry.get()}&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u6309\u94ae<\/strong><\/h2>\n<p>button = tk.Button(root, text=&quot;\u663e\u793a\u7f16\u8f91\u6846\u5185\u5bb9&quot;, command=show_entries)<\/p>\n<p>button.pack(pady=10)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u51fd\u6570<code>show_entries<\/code>\uff0c\u8be5\u51fd\u6570\u904d\u5386\u6240\u6709\u7f16\u8f91\u6846\u5e76\u6253\u5370\u5176\u5185\u5bb9\u3002\u7136\u540e\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u6309\u94ae\uff0c\u5e76\u5c06\u5176<code>command<\/code>\u5c5e\u6027\u8bbe\u7f6e\u4e3a<code>show_entries<\/code>\u51fd\u6570\u3002\u8fd9\u6837\uff0c\u5f53\u7528\u6237\u70b9\u51fb\u6309\u94ae\u65f6\uff0c\u5c31\u4f1a\u6267\u884c<code>show_entries<\/code>\u51fd\u6570\uff0c\u6253\u5370\u6240\u6709\u7f16\u8f91\u6846\u7684\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e0a\u8ff0\u6240\u6709\u4ee3\u7801\u7684\u5b8c\u6574\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u591a\u4e2a\u7f16\u8f91\u6846\u793a\u4f8b&quot;)<\/p>\n<p>root.geometry(&quot;400x300&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u7f16\u8f91\u6846\u7684\u6570\u91cf<\/strong><\/h2>\n<p>num_entries = 5<\/p>\n<h2><strong>\u5faa\u73af\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846<\/strong><\/h2>\n<p>entries = []<\/p>\n<p>for i in range(num_entries):<\/p>\n<p>    entry = tk.Entry(root)<\/p>\n<p>    entry.pack(pady=5)  # \u4f7f\u7528pack\u65b9\u6cd5\u653e\u7f6e\u7f16\u8f91\u6846\uff0c\u5e76\u8bbe\u7f6e\u5782\u76f4\u95f4\u8ddd<\/p>\n<p>    entries.append(entry)<\/p>\n<h2><strong>\u8bbe\u7f6e\u7f16\u8f91\u6846\u7684\u5c5e\u6027<\/strong><\/h2>\n<p>for i, entry in enumerate(entries):<\/p>\n<p>    entry.insert(0, f&quot;\u7f16\u8f91\u6846 {i+1}&quot;)  # \u8bbe\u7f6e\u9ed8\u8ba4\u6587\u672c<\/p>\n<p>    entry.config(width=30, bg=&quot;lightyellow&quot;)  # \u8bbe\u7f6e\u5bbd\u5ea6\u548c\u80cc\u666f\u989c\u8272<\/p>\n<h2><strong>\u5b9a\u4e49\u663e\u793a\u7f16\u8f91\u6846\u5185\u5bb9\u7684\u51fd\u6570<\/strong><\/h2>\n<p>def show_entries():<\/p>\n<p>    for i, entry in enumerate(entries):<\/p>\n<p>        print(f&quot;\u7f16\u8f91\u6846 {i+1}: {entry.get()}&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u6309\u94ae<\/strong><\/h2>\n<p>button = tk.Button(root, text=&quot;\u663e\u793a\u7f16\u8f91\u6846\u5185\u5bb9&quot;, command=show_entries)<\/p>\n<p>button.pack(pady=10)<\/p>\n<h2><strong>\u8fdb\u5165\u4e3b\u5faa\u73af<\/strong><\/h2>\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><h3>\u516d\u3001\u6269\u5c55\u4e0e\u4f18\u5316<\/h3>\n<\/p>\n<ol>\n<li><strong>\u52a8\u6001\u8c03\u6574\u7f16\u8f91\u6846\u6570\u91cf<\/strong>\uff1a\u53ef\u4ee5\u6dfb\u52a0\u8f93\u5165\u6846\u6216\u6ed1\u5757\uff0c\u8ba9\u7528\u6237\u52a8\u6001\u8c03\u6574\u7f16\u8f91\u6846\u7684\u6570\u91cf\u3002<\/li>\n<li><strong>\u5e03\u5c40\u7ba1\u7406\u5668<\/strong>\uff1a\u9664\u4e86<code>pack<\/code>\u5e03\u5c40\u7ba1\u7406\u5668\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>grid<\/code>\u6216<code>place<\/code>\u5e03\u5c40\u7ba1\u7406\u5668\u6765\u66f4\u7075\u6d3b\u5730\u653e\u7f6e\u7f16\u8f91\u6846\u3002<\/li>\n<li><strong>\u8f93\u5165\u9a8c\u8bc1<\/strong>\uff1a\u53ef\u4ee5\u6dfb\u52a0\u8f93\u5165\u9a8c\u8bc1\u529f\u80fd\uff0c\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u5185\u5bb9\u7b26\u5408\u8981\u6c42\u3002<\/li>\n<\/ol>\n<p><h3>\u4e03\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Tkinter\u5728Python\u4e2d\u5faa\u73af\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u5404\u79cd\u8bbe\u7f6e\u548c\u5904\u7406\u3002Tkinter\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684GUI\u5de5\u5177\u5305\uff0c\u9002\u5408\u7528\u6765\u521b\u5efa\u5404\u79cd\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u7406\u89e3\u548c\u4f7f\u7528Tkinter\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\u5e76\u5b9e\u73b0\u5faa\u73af\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Tkinter\u5e93\u6765\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\u3002\u901a\u8fc7for\u5faa\u73af\uff0c\u53ef\u4ee5\u52a8\u6001\u751f\u6210\u6240\u9700\u6570\u91cf\u7684\u7f16\u8f91\u6846\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import tkinter as tk\n\ndef create_entry_fields(num_fields):\n    for _ in range(num_fields):\n        entry = tk.Entry(root)\n        entry.pack()\n\nroot = tk.Tk()\ncreate_entry_fields(5)  # \u751f\u62105\u4e2a\u7f16\u8f91\u6846\nroot.mainloop()\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u5faa\u73af\u751f\u6210\u591a\u4e2a\u7f16\u8f91\u6846\uff0c\u5e76\u5728\u4e3b\u7a97\u53e3\u4e2d\u663e\u793a\u5b83\u4eec\u3002<\/p>\n<p><strong>\u5728Tkinter\u4e2d\uff0c\u5982\u4f55\u83b7\u53d6\u6240\u6709\u7f16\u8f91\u6846\u7684\u8f93\u5165\u5185\u5bb9\uff1f<\/strong><br \/>\u8981\u83b7\u53d6\u6240\u6709\u7f16\u8f91\u6846\u7684\u8f93\u5165\u5185\u5bb9\uff0c\u53ef\u4ee5\u5c06\u6bcf\u4e2a\u7f16\u8f91\u6846\u7684\u5f15\u7528\u4fdd\u5b58\u5728\u5217\u8868\u4e2d\u3002\u901a\u8fc7\u904d\u5386\u5217\u8868\uff0c\u53ef\u4ee5\u8f7b\u677e\u63d0\u53d6\u6bcf\u4e2a\u7f16\u8f91\u6846\u7684\u5185\u5bb9\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">def get_entries():\n    for entry in entry_list:\n        print(entry.get())\n\nentry_list = []\nfor _ in range(5):\n    entry = tk.Entry(root)\n    entry.pack()\n    entry_list.append(entry)\n<\/code><\/pre>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6240\u6709\u7f16\u8f91\u6846\u7684\u8f93\u5165\u5185\u5bb9\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>get_entries()<\/code>\u51fd\u6570\u83b7\u53d6\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\u65f6\u8bbe\u7f6e\u4e0d\u540c\u7684\u9ed8\u8ba4\u503c\uff1f<\/strong><br \/>\u5728\u521b\u5efa\u591a\u4e2a\u7f16\u8f91\u6846\u65f6\uff0c\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u7f16\u8f91\u6846\u6307\u5b9a\u4e0d\u540c\u7684\u9ed8\u8ba4\u503c\u3002\u901a\u8fc7\u4f7f\u7528\u4e00\u4e2a\u5217\u8868\u5b58\u50a8\u9ed8\u8ba4\u503c\uff0c\u5e76\u5728\u5faa\u73af\u4e2d\u8bbe\u7f6e\u6bcf\u4e2a\u7f16\u8f91\u6846\u7684\u5185\u5bb9\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">default_values = [&#39;\u503c1&#39;, &#39;\u503c2&#39;, &#39;\u503c3&#39;, &#39;\u503c4&#39;, &#39;\u503c5&#39;]\nfor value in default_values:\n    entry = tk.Entry(root)\n    entry.insert(0, value)  # \u8bbe\u7f6e\u9ed8\u8ba4\u503c\n    entry.pack()\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u6bcf\u4e2a\u7f16\u8f91\u6846\u4e2d\u770b\u5230\u9884\u8bbe\u7684\u9ed8\u8ba4\u503c\uff0c\u4fbf\u4e8e\u8fdb\u884c\u8f93\u5165\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u5faa\u73af\u51fa\u591a\u4e2a\u7f16\u8f91\u6846\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u4e0d\u540c\u7684GUI\u5de5\u5177\u5305\uff0c\u4f8b\u5982Tkinter\u3001PyQt\u3001wxPyth [&hellip;]","protected":false},"author":3,"featured_media":1029663,"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\/1029652"}],"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=1029652"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1029652\/revisions"}],"predecessor-version":[{"id":1029666,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1029652\/revisions\/1029666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1029663"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1029652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1029652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1029652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}