{"id":1160870,"date":"2025-01-13T19:10:03","date_gmt":"2025-01-13T11:10:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1160870.html"},"modified":"2025-01-13T19:10:06","modified_gmt":"2025-01-13T11:10:06","slug":"menu%e5%a6%82%e4%bd%95%e5%8a%a0%e5%88%b0%e7%94%bb%e5%b8%83%e4%b8%8apython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1160870.html","title":{"rendered":"menu\u5982\u4f55\u52a0\u5230\u753b\u5e03\u4e0apython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25202254\/19a2541c-4285-4cbe-abed-e8a2c0209dcf.webp\" alt=\"menu\u5982\u4f55\u52a0\u5230\u753b\u5e03\u4e0apython\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Tkinter\u5e93\u5c06\u83dc\u5355\u6dfb\u52a0\u5230\u753b\u5e03\u4e0a\u3002Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u63d0\u4f9b\u4e86\u6784\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\u7684\u4fbf\u6377\u65b9\u6cd5\u3002<\/strong> \u521b\u5efa\u83dc\u5355\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u753b\u5e03\u4e0a\u4e3b\u8981\u6d89\u53ca\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a\u5bfc\u5165Tkinter\u5e93\u3001\u521b\u5efa\u4e3b\u7a97\u53e3\u3001\u521b\u5efa\u753b\u5e03\u3001\u521b\u5efa\u83dc\u5355\u3001\u5c06\u83dc\u5355\u7ed1\u5b9a\u5230\u753b\u5e03\u6216\u4e3b\u7a97\u53e3\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u5e76\u7ed9\u51fa\u76f8\u5173\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5bfc\u5165Tkinter\u5e93<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u521b\u5efaGUI\u5e94\u7528\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165Tkinter\u5e93\u3002Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\uff0c\u53ea\u9700\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import Menu<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u521b\u5efa\u4e3b\u7a97\u53e3<\/h3>\n<\/p>\n<p><p>\u521b\u5efa\u4e3b\u7a97\u53e3\u662f\u4efb\u4f55Tkinter\u5e94\u7528\u7a0b\u5e8f\u7684\u7b2c\u4e00\u6b65\u3002\u4e3b\u7a97\u53e3\u662f\u6240\u6709\u5176\u4ed6GUI\u7ec4\u4ef6\u7684\u5bb9\u5668\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">root = tk.Tk()<\/p>\n<p>root.title(&quot;Tkinter Menu Example&quot;)<\/p>\n<p>root.geometry(&quot;800x600&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u521b\u5efa\u753b\u5e03<\/h3>\n<\/p>\n<p><p>\u753b\u5e03\u662f\u4e00\u4e2a\u53ef\u4ee5\u7ed8\u5236\u56fe\u5f62\u3001\u663e\u793a\u56fe\u7247\u3001\u4ee5\u53ca\u653e\u7f6e\u5176\u4ed6\u5c0f\u90e8\u4ef6\u7684\u533a\u57df\u3002\u5728\u8fd9\u4e2a\u6b65\u9aa4\u4e2d\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u753b\u5e03\u5e76\u5c06\u5176\u653e\u7f6e\u5728\u4e3b\u7a97\u53e3\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">canvas = tk.Canvas(root, width=800, height=600)<\/p>\n<p>canvas.pack(fill=tk.BOTH, expand=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u521b\u5efa\u83dc\u5355<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u83dc\u5355\u5e76\u6dfb\u52a0\u5230\u4e3b\u7a97\u53e3\u4e2d\u3002\u83dc\u5355\u662fGUI\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5e38\u89c1\u7684\u7ec4\u4ef6\uff0c\u901a\u5e38\u653e\u7f6e\u5728\u7a97\u53e3\u7684\u9876\u90e8\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">menu_bar = Menu(root)<\/p>\n<p>file_menu = Menu(menu_bar, tearoff=0)<\/p>\n<p>file_menu.add_command(label=&quot;New&quot;)<\/p>\n<p>file_menu.add_command(label=&quot;Open&quot;)<\/p>\n<p>file_menu.add_command(label=&quot;Save&quot;)<\/p>\n<p>file_menu.add_separator()<\/p>\n<p>file_menu.add_command(label=&quot;Exit&quot;, command=root.quit)<\/p>\n<p>menu_bar.add_cascade(label=&quot;File&quot;, menu=file_menu)<\/p>\n<p>edit_menu = Menu(menu_bar, tearoff=0)<\/p>\n<p>edit_menu.add_command(label=&quot;Undo&quot;)<\/p>\n<p>edit_menu.add_command(label=&quot;Redo&quot;)<\/p>\n<p>edit_menu.add_separator()<\/p>\n<p>edit_menu.add_command(label=&quot;Cut&quot;)<\/p>\n<p>edit_menu.add_command(label=&quot;Copy&quot;)<\/p>\n<p>edit_menu.add_command(label=&quot;Paste&quot;)<\/p>\n<p>menu_bar.add_cascade(label=&quot;Edit&quot;, menu=edit_menu)<\/p>\n<p>root.config(menu=menu_bar)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5c06\u83dc\u5355\u7ed1\u5b9a\u5230\u753b\u5e03\u6216\u4e3b\u7a97\u53e3<\/h3>\n<\/p>\n<p><p>\u5728\u521b\u5efa\u83dc\u5355\u4e4b\u540e\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u7ed1\u5b9a\u5230\u753b\u5e03\u6216\u4e3b\u7a97\u53e3\u3002\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u5c06\u83dc\u5355\u7ed1\u5b9a\u5230\u4e3b\u7a97\u53e3\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6f14\u793a\u5982\u4f55\u5728\u753b\u5e03\u4e0a\u6dfb\u52a0\u83dc\u5355\u4e8b\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def on_right_click(event):<\/p>\n<p>    menu_bar.post(event.x_root, event.y_root)<\/p>\n<p>canvas.bind(&quot;&lt;Button-3&gt;&quot;, on_right_click)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5b9e\u73b0\u4e86\u5728\u753b\u5e03\u4e0a\u53f3\u952e\u5355\u51fb\u65f6\u663e\u793a\u83dc\u5355\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u6dfb\u52a0\u5176\u4ed6\u7ec4\u4ef6\u548c\u529f\u80fd<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u83dc\u5355\u548c\u753b\u5e03\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u6dfb\u52a0\u5176\u4ed6\u7ec4\u4ef6\u548c\u529f\u80fd\u6765\u4e30\u5bcc\u6211\u4eec\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u753b\u5e03\u4e0a\u7ed8\u5236\u56fe\u5f62\uff0c\u663e\u793a\u56fe\u7247\uff0c\u6216\u6dfb\u52a0\u6309\u94ae\u548c\u6807\u7b7e\u7b49\u5c0f\u90e8\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6dfb\u52a0\u6309\u94ae<\/p>\n<p>button = tk.Button(root, text=&quot;Click Me&quot;)<\/p>\n<p>canvas.create_window(400, 300, window=button)<\/p>\n<h2><strong>\u7ed8\u5236\u77e9\u5f62<\/strong><\/h2>\n<p>canvas.create_rectangle(50, 50, 150, 150, fill=&quot;blue&quot;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u7247<\/strong><\/h2>\n<p>image = tk.PhotoImage(file=&quot;example.png&quot;)<\/p>\n<p>canvas.create_image(400, 200, image=image)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u8fd0\u884c\u4e3b\u5faa\u73af<\/h3>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u6211\u4eec\u9700\u8981\u8fd0\u884c\u4e3b\u5faa\u73af\u4ee5\u663e\u793a\u4e3b\u7a97\u53e3\uff0c\u5e76\u4f7f\u5e94\u7528\u7a0b\u5e8f\u4fdd\u6301\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">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>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Tkinter\u5e93\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u83dc\u5355\u548c\u753b\u5e03\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5bfc\u5165Tkinter\u5e93\u3001\u521b\u5efa\u4e3b\u7a97\u53e3\u3001\u521b\u5efa\u753b\u5e03\u3001\u521b\u5efa\u83dc\u5355\u3001\u5c06\u83dc\u5355\u7ed1\u5b9a\u5230\u753b\u5e03\u6216\u4e3b\u7a97\u53e3\uff0c\u4ee5\u53ca\u6dfb\u52a0\u5176\u4ed6\u7ec4\u4ef6\u548c\u529f\u80fd\u3002\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u6784\u5efa\u4e00\u4e2a\u529f\u80fd\u4e30\u5bcc\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u5b9e\u8df5\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u8fdb\u4e00\u6b65\u5de9\u56fa\u6211\u4eec\u5b66\u5230\u7684\u77e5\u8bc6\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5c06\u83dc\u5355\u6dfb\u52a0\u5230\u753b\u5e03\u4e0a\uff0c\u5e76\u5b9e\u73b0\u4e00\u4e9b\u57fa\u672c\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import Menu, PhotoImage<\/p>\n<p>def on_right_click(event):<\/p>\n<p>    menu_bar.post(event.x_root, event.y_root)<\/p>\n<p>def new_file():<\/p>\n<p>    print(&quot;New File Created&quot;)<\/p>\n<p>def open_file():<\/p>\n<p>    print(&quot;File Opened&quot;)<\/p>\n<p>def save_file():<\/p>\n<p>    print(&quot;File Saved&quot;)<\/p>\n<p>def exit_program():<\/p>\n<p>    root.quit()<\/p>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;Tkinter Menu Example&quot;)<\/p>\n<p>root.geometry(&quot;800x600&quot;)<\/p>\n<p>canvas = tk.Canvas(root, width=800, height=600)<\/p>\n<p>canvas.pack(fill=tk.BOTH, expand=True)<\/p>\n<p>menu_bar = Menu(root)<\/p>\n<p>file_menu = Menu(menu_bar, tearoff=0)<\/p>\n<p>file_menu.add_command(label=&quot;New&quot;, command=new_file)<\/p>\n<p>file_menu.add_command(label=&quot;Open&quot;, command=open_file)<\/p>\n<p>file_menu.add_command(label=&quot;Save&quot;, command=save_file)<\/p>\n<p>file_menu.add_separator()<\/p>\n<p>file_menu.add_command(label=&quot;Exit&quot;, command=exit_program)<\/p>\n<p>menu_bar.add_cascade(label=&quot;File&quot;, menu=file_menu)<\/p>\n<p>edit_menu = Menu(menu_bar, tearoff=0)<\/p>\n<p>edit_menu.add_command(label=&quot;Undo&quot;)<\/p>\n<p>edit_menu.add_command(label=&quot;Redo&quot;)<\/p>\n<p>edit_menu.add_separator()<\/p>\n<p>edit_menu.add_command(label=&quot;Cut&quot;)<\/p>\n<p>edit_menu.add_command(label=&quot;Copy&quot;)<\/p>\n<p>edit_menu.add_command(label=&quot;Paste&quot;)<\/p>\n<p>menu_bar.add_cascade(label=&quot;Edit&quot;, menu=edit_menu)<\/p>\n<p>root.config(menu=menu_bar)<\/p>\n<p>canvas.bind(&quot;&lt;Button-3&gt;&quot;, on_right_click)<\/p>\n<p>button = tk.Button(root, text=&quot;Click Me&quot;)<\/p>\n<p>canvas.create_window(400, 300, window=button)<\/p>\n<p>canvas.create_rectangle(50, 50, 150, 150, fill=&quot;blue&quot;)<\/p>\n<p>image = PhotoImage(file=&quot;example.png&quot;)<\/p>\n<p>canvas.create_image(400, 200, image=image)<\/p>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd0\u884c\u8fd9\u6bb5\u4ee3\u7801\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u83dc\u5355\u548c\u753b\u5e03\u7684\u7b80\u5355GUI\u5e94\u7528\u7a0b\u5e8f\u3002\u4f60\u53ef\u4ee5\u8fdb\u4e00\u6b65\u6269\u5c55\u8fd9\u4e2a\u793a\u4f8b\uff0c\u6dfb\u52a0\u66f4\u591a\u529f\u80fd\u548c\u4ea4\u4e92\uff0c\u4ee5\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528Tkinter\u5e93\u521b\u5efa\u548c\u7ba1\u7406GUI\u7ec4\u4ef6\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528Tkinter\u521b\u5efa\u83dc\u5355\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528Tkinter\u5e93\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\uff0c\u5305\u62ec\u83dc\u5355\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5bfc\u5165Tkinter\u5e93\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\u3002\u63a5\u7740\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>Menu<\/code>\u7c7b\u6765\u521b\u5efa\u83dc\u5355\uff0c\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u4e3b\u7a97\u53e3\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import tkinter as tk\n\ndef do_something():\n    print(&quot;\u83dc\u5355\u9879\u88ab\u70b9\u51fb&quot;)\n\nroot = tk.Tk()\nmenu = tk.Menu(root)\nroot.config(menu=menu)\n\nfile_menu = tk.Menu(menu)\nmenu.add_cascade(label=&quot;\u6587\u4ef6&quot;, menu=file_menu)\nfile_menu.add_command(label=&quot;\u6253\u5f00&quot;, command=do_something)\nfile_menu.add_separator()\nfile_menu.add_command(label=&quot;\u9000\u51fa&quot;, command=root.quit)\n\nroot.mainloop()\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u5c55\u793a\u4e86\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u201c\u6587\u4ef6\u201d\u83dc\u5355\u7684\u7b80\u5355\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u81ea\u5b9a\u4e49\u83dc\u5355\u7684\u6837\u5f0f\u548c\u529f\u80fd\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u901a\u8fc7Tkinter\u7684<code>Menu<\/code>\u7c7b\uff0c\u8bbe\u7f6e\u83dc\u5355\u7684\u6837\u5f0f\u548c\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>add_command<\/code>\u65b9\u6cd5\u6dfb\u52a0\u529f\u80fd\uff0c\u4f7f\u7528<code>add_separator<\/code>\u65b9\u6cd5\u6dfb\u52a0\u5206\u9694\u7b26\u3002\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u51fd\u6570\u6765\u54cd\u5e94\u83dc\u5355\u9879\u7684\u70b9\u51fb\u4e8b\u4ef6\uff0c\u4ece\u800c\u5b9e\u73b0\u81ea\u5b9a\u4e49\u529f\u80fd\u3002\u6b64\u5916\uff0cTkinter\u5141\u8bb8\u60a8\u4f7f\u7528\u4e0d\u540c\u7684\u5b57\u4f53\u3001\u989c\u8272\u548c\u5e03\u5c40\u6765\u7f8e\u5316\u83dc\u5355\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u7684\u56fe\u5f62\u754c\u9762\u4e2d\u52a8\u6001\u66f4\u65b0\u83dc\u5355\u9879\uff1f<\/strong><br \/>\u5728Tkinter\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>entryconfig<\/code>\u65b9\u6cd5\u52a8\u6001\u66f4\u65b0\u83dc\u5355\u9879\u7684\u6587\u672c\u6216\u72b6\u6001\u3002\u8fd9\u4f7f\u5f97\u7528\u6237\u5728\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u65f6\u80fd\u591f\u6539\u53d8\u83dc\u5355\u7684\u5185\u5bb9\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u5e94\u7528\u7a0b\u5e8f\u7684\u72b6\u6001\u6765\u542f\u7528\u6216\u7981\u7528\u67d0\u4e9b\u83dc\u5355\u9879\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">def toggle_menu_item():\n    if file_menu.entrycget(0, &quot;state&quot;) == &quot;normal&quot;:\n        file_menu.entryconfig(0, state=&quot;disabled&quot;)\n    else:\n        file_menu.entryconfig(0, state=&quot;normal&quot;)\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u66f4\u52a0\u7075\u6d3b\u548c\u4e92\u52a8\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Tkinter\u5e93\u5c06\u83dc\u5355\u6dfb\u52a0\u5230\u753b\u5e03\u4e0a\u3002Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u63d0\u4f9b [&hellip;]","protected":false},"author":3,"featured_media":1160882,"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\/1160870"}],"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=1160870"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1160870\/revisions"}],"predecessor-version":[{"id":1160883,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1160870\/revisions\/1160883"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1160882"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1160870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1160870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1160870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}