{"id":1177671,"date":"2025-01-15T18:00:50","date_gmt":"2025-01-15T10:00:50","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1177671.html"},"modified":"2025-01-15T18:00:53","modified_gmt":"2025-01-15T10:00:53","slug":"python%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae%e5%b7%a5%e5%85%b7%e6%a0%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1177671.html","title":{"rendered":"python\u5982\u4f55\u8bbe\u7f6e\u5de5\u5177\u680f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25112530\/6206f26b-6f31-4fa0-b7ea-aa2c29044102.webp\" alt=\"python\u5982\u4f55\u8bbe\u7f6e\u5de5\u5177\u680f\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u8bbe\u7f6e\u5de5\u5177\u680f\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u53d6\u51b3\u4e8e\u4f60\u6240\u4f7f\u7528\u7684GUI\u5e93\u3002\u5e38\u89c1\u7684GUI\u5e93\u5305\u62ecTkinter\u3001PyQt\u3001wxPython\u7b49\u3002<strong>\u5728Tkinter\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Menu\u548cToolbar\u6765\u8bbe\u7f6e\u5de5\u5177\u680f<\/strong>\uff0c<strong>\u5728PyQt\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528QToolBar<\/strong>\uff0c<strong>\u5728wxPython\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528AuiToolBar<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Tkinter\u4e2d\u8bbe\u7f6e\u5de5\u5177\u680f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Tkinter\u8bbe\u7f6e\u5de5\u5177\u680f<\/h3>\n<\/p>\n<p><h4>1\u3001\u521b\u5efa\u57fa\u672c\u7a97\u53e3<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7684Tkinter\u7a97\u53e3\u3002\u8fd9\u5c06\u6210\u4e3a\u6211\u4eec\u7684\u4e3b\u7a97\u53e3\uff0c\u7528\u4e8e\u5bb9\u7eb3\u5de5\u5177\u680f\u548c\u5176\u4ed6\u7ec4\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import ttk<\/p>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;Tkinter Toolbar Example&quot;)<\/p>\n<p>root.geometry(&quot;500x400&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u83dc\u5355\u680f<\/h4>\n<\/p>\n<p><p>\u83dc\u5355\u680f\u662f\u4f4d\u4e8e\u7a97\u53e3\u9876\u90e8\u7684\u4e00\u4e2a\u6a2a\u6761\uff0c\u7528\u4e8e\u653e\u7f6e\u5404\u79cd\u83dc\u5355\u9879\u3002\u4f60\u53ef\u4ee5\u5728\u83dc\u5355\u680f\u4e2d\u6dfb\u52a0\u201c\u6587\u4ef6\u201d\u3001\u201c\u7f16\u8f91\u201d\u7b49\u83dc\u5355\u9879\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">menubar = tk.Menu(root)<\/p>\n<p>filemenu = tk.Menu(menubar, tearoff=0)<\/p>\n<p>filemenu.add_command(label=&quot;New&quot;)<\/p>\n<p>filemenu.add_command(label=&quot;Open&quot;)<\/p>\n<p>filemenu.add_command(label=&quot;Save&quot;)<\/p>\n<p>filemenu.add_separator()<\/p>\n<p>filemenu.add_command(label=&quot;Exit&quot;, command=root.quit)<\/p>\n<p>menubar.add_cascade(label=&quot;File&quot;, menu=filemenu)<\/p>\n<p>editmenu = tk.Menu(menubar, tearoff=0)<\/p>\n<p>editmenu.add_command(label=&quot;Undo&quot;)<\/p>\n<p>editmenu.add_separator()<\/p>\n<p>editmenu.add_command(label=&quot;Cut&quot;)<\/p>\n<p>editmenu.add_command(label=&quot;Copy&quot;)<\/p>\n<p>editmenu.add_command(label=&quot;Paste&quot;)<\/p>\n<p>menubar.add_cascade(label=&quot;Edit&quot;, menu=editmenu)<\/p>\n<p>root.config(menu=menubar)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u521b\u5efa\u5de5\u5177\u680f<\/h4>\n<\/p>\n<p><p>\u5de5\u5177\u680f\u662f\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u63a7\u4ef6\u6761\uff0c\u901a\u5e38\u5305\u542b\u4e00\u7ec4\u6309\u94ae\u6216\u5176\u4ed6\u63a7\u4ef6\uff0c\u7528\u4e8e\u5feb\u901f\u8bbf\u95ee\u5e38\u7528\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">toolbar = tk.Frame(root, bd=1, relief=tk.R<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>SED)<\/p>\n<p>new_icon = tk.PhotoImage(file=&quot;new.png&quot;)<\/p>\n<p>open_icon = tk.PhotoImage(file=&quot;open.png&quot;)<\/p>\n<p>save_icon = tk.PhotoImage(file=&quot;save.png&quot;)<\/p>\n<p>new_button = ttk.Button(toolbar, image=new_icon, command=lambda: print(&quot;New File&quot;))<\/p>\n<p>new_button.pack(side=tk.LEFT, padx=2, pady=2)<\/p>\n<p>open_button = ttk.Button(toolbar, image=open_icon, command=lambda: print(&quot;Open File&quot;))<\/p>\n<p>open_button.pack(side=tk.LEFT, padx=2, pady=2)<\/p>\n<p>save_button = ttk.Button(toolbar, image=save_icon, command=lambda: print(&quot;Save File&quot;))<\/p>\n<p>save_button.pack(side=tk.LEFT, padx=2, pady=2)<\/p>\n<p>toolbar.pack(side=tk.TOP, fill=tk.X)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528PyQt\u8bbe\u7f6e\u5de5\u5177\u680f<\/h3>\n<\/p>\n<p><h4>1\u3001\u521b\u5efa\u57fa\u672c\u7a97\u53e3<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7684PyQt\u7a97\u53e3\u3002\u8fd9\u5c06\u6210\u4e3a\u6211\u4eec\u7684\u4e3b\u7a97\u53e3\uff0c\u7528\u4e8e\u5bb9\u7eb3\u5de5\u5177\u680f\u548c\u5176\u4ed6\u7ec4\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, QToolBar<\/p>\n<p>import sys<\/p>\n<p>class MainWindow(QMainWindow):<\/p>\n<p>    def __init__(self):<\/p>\n<p>        super().__init__()<\/p>\n<p>        self.setWindowTitle(&quot;PyQt Toolbar Example&quot;)<\/p>\n<p>        self.setGeometry(100, 100, 600, 400)<\/p>\n<p>app = QApplication(sys.argv)<\/p>\n<p>main_window = MainWindow()<\/p>\n<p>main_window.show()<\/p>\n<p>sys.exit(app.exec_())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u83dc\u5355\u680f<\/h4>\n<\/p>\n<p><p>\u83dc\u5355\u680f\u662f\u4f4d\u4e8e\u7a97\u53e3\u9876\u90e8\u7684\u4e00\u4e2a\u6a2a\u6761\uff0c\u7528\u4e8e\u653e\u7f6e\u5404\u79cd\u83dc\u5355\u9879\u3002\u4f60\u53ef\u4ee5\u5728\u83dc\u5355\u680f\u4e2d\u6dfb\u52a0\u201c\u6587\u4ef6\u201d\u3001\u201c\u7f16\u8f91\u201d\u7b49\u83dc\u5355\u9879\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">file_menu = main_window.menuBar().addMenu(&quot;File&quot;)<\/p>\n<p>new_action = QAction(&quot;New&quot;, main_window)<\/p>\n<p>open_action = QAction(&quot;Open&quot;, main_window)<\/p>\n<p>save_action = QAction(&quot;Save&quot;, main_window)<\/p>\n<p>file_menu.addAction(new_action)<\/p>\n<p>file_menu.addAction(open_action)<\/p>\n<p>file_menu.addAction(save_action)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u521b\u5efa\u5de5\u5177\u680f<\/h4>\n<\/p>\n<p><p>\u5de5\u5177\u680f\u662f\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u63a7\u4ef6\u6761\uff0c\u901a\u5e38\u5305\u542b\u4e00\u7ec4\u6309\u94ae\u6216\u5176\u4ed6\u63a7\u4ef6\uff0c\u7528\u4e8e\u5feb\u901f\u8bbf\u95ee\u5e38\u7528\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">toolbar = QToolBar(&quot;Main Toolbar&quot;)<\/p>\n<p>main_window.addToolBar(toolbar)<\/p>\n<p>new_action = QAction(&quot;New&quot;, main_window)<\/p>\n<p>open_action = QAction(&quot;Open&quot;, main_window)<\/p>\n<p>save_action = QAction(&quot;Save&quot;, main_window)<\/p>\n<p>toolbar.addAction(new_action)<\/p>\n<p>toolbar.addAction(open_action)<\/p>\n<p>toolbar.addAction(save_action)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528wxPython\u8bbe\u7f6e\u5de5\u5177\u680f<\/h3>\n<\/p>\n<p><h4>1\u3001\u521b\u5efa\u57fa\u672c\u7a97\u53e3<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7684wxPython\u7a97\u53e3\u3002\u8fd9\u5c06\u6210\u4e3a\u6211\u4eec\u7684\u4e3b\u7a97\u53e3\uff0c\u7528\u4e8e\u5bb9\u7eb3\u5de5\u5177\u680f\u548c\u5176\u4ed6\u7ec4\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import wx<\/p>\n<p>class MainFrame(wx.Frame):<\/p>\n<p>    def __init__(self, *args, kw):<\/p>\n<p>        super(MainFrame, self).__init__(*args, kw)<\/p>\n<p>        self.SetTitle(&quot;wxPython Toolbar Example&quot;)<\/p>\n<p>        self.SetSize((600, 400))<\/p>\n<p>app = wx.App(False)<\/p>\n<p>frame = MainFrame(None)<\/p>\n<p>frame.Show()<\/p>\n<p>app.MainLoop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u83dc\u5355\u680f<\/h4>\n<\/p>\n<p><p>\u83dc\u5355\u680f\u662f\u4f4d\u4e8e\u7a97\u53e3\u9876\u90e8\u7684\u4e00\u4e2a\u6a2a\u6761\uff0c\u7528\u4e8e\u653e\u7f6e\u5404\u79cd\u83dc\u5355\u9879\u3002\u4f60\u53ef\u4ee5\u5728\u83dc\u5355\u680f\u4e2d\u6dfb\u52a0\u201c\u6587\u4ef6\u201d\u3001\u201c\u7f16\u8f91\u201d\u7b49\u83dc\u5355\u9879\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">menubar = wx.MenuBar()<\/p>\n<p>file_menu = wx.Menu()<\/p>\n<p>file_menu.Append(wx.ID_NEW, &quot;&amp;New&quot;)<\/p>\n<p>file_menu.Append(wx.ID_OPEN, &quot;&amp;Open&quot;)<\/p>\n<p>file_menu.Append(wx.ID_SAVE, &quot;&amp;Save&quot;)<\/p>\n<p>file_menu.AppendSeparator()<\/p>\n<p>file_menu.Append(wx.ID_EXIT, &quot;E&amp;xit&quot;)<\/p>\n<p>menubar.Append(file_menu, &quot;&amp;File&quot;)<\/p>\n<p>edit_menu = wx.Menu()<\/p>\n<p>edit_menu.Append(wx.ID_UNDO, &quot;&amp;Undo&quot;)<\/p>\n<p>edit_menu.AppendSeparator()<\/p>\n<p>edit_menu.Append(wx.ID_CUT, &quot;Cu&amp;t&quot;)<\/p>\n<p>edit_menu.Append(wx.ID_COPY, &quot;&amp;Copy&quot;)<\/p>\n<p>edit_menu.Append(wx.ID_PASTE, &quot;&amp;Paste&quot;)<\/p>\n<p>menubar.Append(edit_menu, &quot;&amp;Edit&quot;)<\/p>\n<p>frame.SetMenuBar(menubar)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u521b\u5efa\u5de5\u5177\u680f<\/h4>\n<\/p>\n<p><p>\u5de5\u5177\u680f\u662f\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u63a7\u4ef6\u6761\uff0c\u901a\u5e38\u5305\u542b\u4e00\u7ec4\u6309\u94ae\u6216\u5176\u4ed6\u63a7\u4ef6\uff0c\u7528\u4e8e\u5feb\u901f\u8bbf\u95ee\u5e38\u7528\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">toolbar = frame.CreateToolBar()<\/p>\n<p>toolbar.AddTool(wx.ID_NEW, &quot;New&quot;, wx.Bitmap(&quot;new.png&quot;))<\/p>\n<p>toolbar.AddTool(wx.ID_OPEN, &quot;Open&quot;, wx.Bitmap(&quot;open.png&quot;))<\/p>\n<p>toolbar.AddTool(wx.ID_SAVE, &quot;Save&quot;, wx.Bitmap(&quot;save.png&quot;))<\/p>\n<p>toolbar.Realize()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5728Tkinter\u3001PyQt\u548cwxPython\u4e2d\u5206\u522b\u521b\u5efa\u5de5\u5177\u680f\u3002\u8fd9\u4e9b\u5de5\u5177\u680f\u53ef\u4ee5\u5305\u542b\u5404\u79cd\u6309\u94ae\uff0c\u7528\u4e8e\u5feb\u901f\u8bbf\u95ee\u5e38\u7528\u529f\u80fd\u3002<strong>\u5728Tkinter\u4e2d\u4f7f\u7528Frame\u548cButton\u521b\u5efa\u5de5\u5177\u680f<\/strong>\uff0c<strong>\u5728PyQt\u4e2d\u4f7f\u7528QToolBar\u548cQAction\u521b\u5efa\u5de5\u5177\u680f<\/strong>\uff0c<strong>\u5728wxPython\u4e2d\u4f7f\u7528CreateToolBar\u548cAddTool\u521b\u5efa\u5de5\u5177\u680f<\/strong>\u3002\u6839\u636e\u4f60\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684GUI\u5e93\uff0c\u5e76\u53c2\u8003\u76f8\u5e94\u7684\u4ee3\u7801\u793a\u4f8b\u8fdb\u884c\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u5de5\u5177\u680f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u521b\u5efa\u81ea\u5b9a\u4e49\u5de5\u5177\u680f\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5e93\u5b9e\u73b0\uff0c\u4f8b\u5982Tkinter\u3001PyQt\u6216wxPython\u3002\u4ee5Tkinter\u4e3a\u4f8b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>Frame<\/code>\u7ec4\u4ef6\u6765\u521b\u5efa\u5de5\u5177\u680f\uff0c\u5e76\u5728\u5176\u4e0a\u6dfb\u52a0\u6309\u94ae\u3001\u4e0b\u62c9\u83dc\u5355\u6216\u5176\u4ed6\u63a7\u4ef6\u3002\u901a\u8fc7\u914d\u7f6e\u8fd9\u4e9b\u63a7\u4ef6\u7684\u547d\u4ee4\u5c5e\u6027\uff0c\u53ef\u4ee5\u4f7f\u5de5\u5177\u680f\u7684\u529f\u80fd\u66f4\u52a0\u4e30\u5bcc\u3002<\/p>\n<p><strong>Python\u5de5\u5177\u680f\u7684\u5e38\u89c1\u5e94\u7528\u573a\u666f\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u5de5\u5177\u680f\u5728\u8bb8\u591a\u5e94\u7528\u7a0b\u5e8f\u4e2d\u90fd\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u5e38\u89c1\u7684\u573a\u666f\u5305\u62ec\u6587\u4ef6\u64cd\u4f5c\uff08\u5982\u6253\u5f00\u3001\u4fdd\u5b58\u3001\u6253\u5370\uff09\u3001\u56fe\u5f62\u7f16\u8f91\uff08\u5982\u9009\u62e9\u3001\u64a4\u9500\u3001\u91cd\u505a\uff09\u548c\u529f\u80fd\u5207\u6362\uff08\u5982\u5207\u6362\u89c6\u56fe\u6a21\u5f0f\u3001\u8bbe\u7f6e\u504f\u597d\uff09\u3002\u901a\u8fc7\u5408\u7406\u8bbe\u8ba1\u5de5\u5177\u680f\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u548c\u64cd\u4f5c\u6548\u7387\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u6574Python\u5de5\u5177\u680f\u7684\u5916\u89c2\u548c\u5e03\u5c40\uff1f<\/strong><br \/>\u5728Python\u7684\u4e0d\u540cGUI\u6846\u67b6\u4e2d\uff0c\u8c03\u6574\u5de5\u5177\u680f\u7684\u5916\u89c2\u548c\u5e03\u5c40\u7684\u65b9\u6cd5\u5404\u4e0d\u76f8\u540c\u3002\u5728Tkinter\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pack()<\/code>\u3001<code>grid()<\/code>\u6216<code>place()<\/code>\u65b9\u6cd5\u6765\u5e03\u5c40\u5de5\u5177\u680f\u4e2d\u7684\u63a7\u4ef6\u3002\u53ef\u4ee5\u8bbe\u7f6e\u63a7\u4ef6\u7684\u80cc\u666f\u989c\u8272\u3001\u5b57\u4f53\u3001\u56fe\u6807\u7b49\u5c5e\u6027\uff0c\u4ee5\u4f7f\u5de5\u5177\u680f\u66f4\u52a0\u7f8e\u89c2\u4e14\u7b26\u5408\u5e94\u7528\u7a0b\u5e8f\u7684\u6574\u4f53\u98ce\u683c\u3002\u540c\u65f6\uff0c\u4f7f\u7528\u56fe\u6807\u66ff\u4ee3\u6587\u672c\u53ef\u4ee5\u8ba9\u5de5\u5177\u680f\u663e\u5f97\u66f4\u52a0\u7b80\u6d01\u660e\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8bbe\u7f6e\u5de5\u5177\u680f\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u53d6\u51b3\u4e8e\u4f60\u6240\u4f7f\u7528\u7684GUI\u5e93\u3002\u5e38\u89c1\u7684GUI\u5e93\u5305\u62ecTkinter\u3001PyQ [&hellip;]","protected":false},"author":3,"featured_media":1177677,"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\/1177671"}],"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=1177671"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1177671\/revisions"}],"predecessor-version":[{"id":1177679,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1177671\/revisions\/1177679"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1177677"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1177671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1177671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1177671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}