{"id":1137102,"date":"2025-01-08T21:44:22","date_gmt":"2025-01-08T13:44:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1137102.html"},"modified":"2025-01-08T21:44:24","modified_gmt":"2025-01-08T13:44:24","slug":"python%e5%a6%82%e4%bd%95%e5%9c%a8tk%e7%95%8c%e9%9d%a2%e4%b8%8a%e7%94%bb%e5%88%86%e5%89%b2%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1137102.html","title":{"rendered":"python\u5982\u4f55\u5728tk\u754c\u9762\u4e0a\u753b\u5206\u5272\u7ebf"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101022\/e1c9143d-1ee9-4290-8dab-8446457f1ea7.webp\" alt=\"python\u5982\u4f55\u5728tk\u754c\u9762\u4e0a\u753b\u5206\u5272\u7ebf\" \/><\/p>\n<p><p> <strong>\u5728Python\u7684Tkinter\u754c\u9762\u4e0a\u753b\u5206\u5272\u7ebf\u7684\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Canvas\u3001Frame\u3001ttk.Separator\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>\u5176\u4e2d\u4f7f\u7528Canvas\u662f\u6700\u7075\u6d3b\u7684\u65b9\u6cd5\uff0c\u4f7f\u7528Frame\u548cttk.Separator\u5219\u66f4\u52a0\u7b80\u6d01\u3002<\/strong> \u8fd9\u91cc\u6211\u4eec\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u5b9e\u73b0\u5206\u5272\u7ebf\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528Canvas\u753b\u5206\u5272\u7ebf<\/h2>\n<\/p>\n<p><p>Canvas\u662fTkinter\u4e2d\u6700\u7075\u6d3b\u7684\u7ed8\u56fe\u5de5\u5177\uff0c\u53ef\u4ee5\u7ed8\u5236\u7ebf\u6761\u3001\u77e9\u5f62\u3001\u692d\u5706\u3001\u56fe\u50cf\u7b49\u3002\u4f7f\u7528Canvas\u753b\u5206\u5272\u7ebf\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7ebf\u6761\u7684\u989c\u8272\u3001\u5bbd\u5ea6\uff0c\u8fd8\u53ef\u4ee5\u7cbe\u786e\u5730\u63a7\u5236\u7ebf\u6761\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><h3>1.1 \u521b\u5efaCanvas\u5e76\u7ed8\u5236\u7ebf\u6761<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2aCanvas\u5bf9\u8c61\uff0c\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u4e3b\u7a97\u53e3\u4e2d\u3002\u7136\u540e\u4f7f\u7528<code>create_line<\/code>\u65b9\u6cd5\u7ed8\u5236\u5206\u5272\u7ebf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def create_canvas_line():<\/p>\n<p>    root = tk.Tk()<\/p>\n<p>    root.title(&quot;Canvas\u5206\u5272\u7ebf\u793a\u4f8b&quot;)<\/p>\n<p>    # \u521b\u5efaCanvas\u5bf9\u8c61<\/p>\n<p>    canvas = tk.Canvas(root, width=400, height=300)<\/p>\n<p>    canvas.pack()<\/p>\n<p>    # \u7ed8\u5236\u6c34\u5e73\u5206\u5272\u7ebf<\/p>\n<p>    canvas.create_line(50, 150, 350, 150, fill=&quot;black&quot;, width=2)<\/p>\n<p>    # \u7ed8\u5236\u5782\u76f4\u5206\u5272\u7ebf<\/p>\n<p>    canvas.create_line(200, 50, 200, 250, fill=&quot;black&quot;, width=2)<\/p>\n<p>    root.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    create_canvas_line()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2aCanvas\u5bf9\u8c61\uff0c\u5e76\u4f7f\u7528<code>create_line<\/code>\u65b9\u6cd5\u7ed8\u5236\u4e86\u6c34\u5e73\u548c\u5782\u76f4\u7684\u5206\u5272\u7ebf\u3002\u901a\u8fc7\u8c03\u6574\u8d77\u70b9\u548c\u7ec8\u70b9\u7684\u5750\u6807\uff0c\u53ef\u4ee5\u7ed8\u5236\u4e0d\u540c\u4f4d\u7f6e\u7684\u5206\u5272\u7ebf\u3002<\/p>\n<\/p>\n<p><h3>1.2 \u81ea\u5b9a\u4e49\u5206\u5272\u7ebf\u7684\u6837\u5f0f<\/h3>\n<\/p>\n<p><p>Canvas\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u53c2\u6570\u7528\u4e8e\u81ea\u5b9a\u4e49\u7ebf\u6761\u7684\u6837\u5f0f\uff0c\u4f8b\u5982\u989c\u8272\u3001\u5bbd\u5ea6\u3001\u7ebf\u6761\u7c7b\u578b\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def create_custom_canvas_line():<\/p>\n<p>    root = tk.Tk()<\/p>\n<p>    root.title(&quot;\u81ea\u5b9a\u4e49Canvas\u5206\u5272\u7ebf&quot;)<\/p>\n<p>    # \u521b\u5efaCanvas\u5bf9\u8c61<\/p>\n<p>    canvas = tk.Canvas(root, width=400, height=300)<\/p>\n<p>    canvas.pack()<\/p>\n<p>    # \u7ed8\u5236\u865a\u7ebf\u5206\u5272\u7ebf<\/p>\n<p>    canvas.create_line(50, 150, 350, 150, fill=&quot;blue&quot;, width=2, dash=(5, 2))<\/p>\n<p>    root.mainloop()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    create_custom_canvas_line()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86<code>dash<\/code>\u53c2\u6570\u6765\u7ed8\u5236\u865a\u7ebf\u5206\u5272\u7ebf\u3002<code>dash<\/code>\u53c2\u6570\u662f\u4e00\u4e2a\u5143\u7ec4\uff0c\u8868\u793a\u865a\u7ebf\u7684\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528Frame\u753b\u5206\u5272\u7ebf<\/h2>\n<\/p>\n<p><p>Frame\u662fTkinter\u4e2d\u7528\u4e8e\u5bb9\u7eb3\u5176\u4ed6\u5c0f\u90e8\u4ef6\u7684\u5bb9\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eFrame\u7684\u80cc\u666f\u989c\u8272\u548c\u5927\u5c0f\u6765\u5b9e\u73b0\u5206\u5272\u7ebf\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h3>2.1 \u521b\u5efa\u6c34\u5e73\u5206\u5272\u7ebf<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def create_frame_line():<\/p>\n<p>    root = tk.Tk()<\/p>\n<p>    root.title(&quot;Frame\u5206\u5272\u7ebf\u793a\u4f8b&quot;)<\/p>\n<p>    # \u521b\u5efaFrame\u5bf9\u8c61\u4f5c\u4e3a\u6c34\u5e73\u5206\u5272\u7ebf<\/p>\n<p>    frame = tk.Frame(root, height=2, bd=1, relief=tk.SUNKEN, bg=&quot;black&quot;)<\/p>\n<p>    frame.pack(fill=tk.X, padx=5, pady=5)<\/p>\n<p>    root.mainloop()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    create_frame_line()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u9ad8\u5ea6\u4e3a2\u50cf\u7d20\u7684Frame\u5bf9\u8c61\uff0c\u5e76\u5c06\u5176\u80cc\u666f\u989c\u8272\u8bbe\u7f6e\u4e3a\u9ed1\u8272\uff0c\u901a\u8fc7<code>pack<\/code>\u65b9\u6cd5\u4e2d\u7684<code>fill=tk.X<\/code>\u53c2\u6570\uff0c\u4f7f\u5176\u5728\u6c34\u5e73\u4e0a\u586b\u5145\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><h3>2.2 \u521b\u5efa\u5782\u76f4\u5206\u5272\u7ebf<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def create_vertical_frame_line():<\/p>\n<p>    root = tk.Tk()<\/p>\n<p>    root.title(&quot;\u5782\u76f4Frame\u5206\u5272\u7ebf&quot;)<\/p>\n<p>    # \u521b\u5efaFrame\u5bf9\u8c61\u4f5c\u4e3a\u5782\u76f4\u5206\u5272\u7ebf<\/p>\n<p>    frame = tk.Frame(root, width=2, bd=1, relief=tk.SUNKEN, bg=&quot;black&quot;)<\/p>\n<p>    frame.pack(side=tk.LEFT, fill=tk.Y, padx=5, pady=5)<\/p>\n<p>    root.mainloop()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    create_vertical_frame_line()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u5bbd\u5ea6\u4e3a2\u50cf\u7d20\u7684Frame\u5bf9\u8c61\uff0c\u5e76\u5c06\u5176\u80cc\u666f\u989c\u8272\u8bbe\u7f6e\u4e3a\u9ed1\u8272\uff0c\u901a\u8fc7<code>pack<\/code>\u65b9\u6cd5\u4e2d\u7684<code>fill=tk.Y<\/code>\u53c2\u6570\uff0c\u4f7f\u5176\u5728\u5782\u76f4\u4e0a\u586b\u5145\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528ttk.Separator\u753b\u5206\u5272\u7ebf<\/h2>\n<\/p>\n<p><p>ttk.Separator\u662fTkinter\u7684ttk\u6a21\u5757\u63d0\u4f9b\u7684\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u7ed8\u5236\u5206\u5272\u7ebf\u7684\u5c0f\u90e8\u4ef6\uff0c\u4f7f\u7528\u8d77\u6765\u66f4\u52a0\u7b80\u6d01\u3002<\/p>\n<\/p>\n<p><h3>3.1 \u521b\u5efa\u6c34\u5e73\u5206\u5272\u7ebf<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import ttk<\/p>\n<p>def create_ttk_separator():<\/p>\n<p>    root = tk.Tk()<\/p>\n<p>    root.title(&quot;ttk.Separator\u5206\u5272\u7ebf\u793a\u4f8b&quot;)<\/p>\n<p>    # \u521b\u5efattk.Separator\u5bf9\u8c61\u4f5c\u4e3a\u6c34\u5e73\u5206\u5272\u7ebf<\/p>\n<p>    separator = ttk.Separator(root, orient=&quot;horizontal&quot;)<\/p>\n<p>    separator.pack(fill=tk.X, padx=5, pady=5)<\/p>\n<p>    root.mainloop()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    create_ttk_separator()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u6c34\u5e73\u7684ttk.Separator\u5bf9\u8c61\uff0c\u5e76\u901a\u8fc7<code>pack<\/code>\u65b9\u6cd5\u4e2d\u7684<code>fill=tk.X<\/code>\u53c2\u6570\uff0c\u4f7f\u5176\u5728\u6c34\u5e73\u4e0a\u586b\u5145\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><h3>3.2 \u521b\u5efa\u5782\u76f4\u5206\u5272\u7ebf<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import ttk<\/p>\n<p>def create_vertical_ttk_separator():<\/p>\n<p>    root = tk.Tk()<\/p>\n<p>    root.title(&quot;\u5782\u76f4ttk.Separator\u5206\u5272\u7ebf&quot;)<\/p>\n<p>    # \u521b\u5efattk.Separator\u5bf9\u8c61\u4f5c\u4e3a\u5782\u76f4\u5206\u5272\u7ebf<\/p>\n<p>    separator = ttk.Separator(root, orient=&quot;vertical&quot;)<\/p>\n<p>    separator.pack(side=tk.LEFT, fill=tk.Y, padx=5, pady=5)<\/p>\n<p>    root.mainloop()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    create_vertical_ttk_separator()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u5782\u76f4\u7684ttk.Separator\u5bf9\u8c61\uff0c\u5e76\u901a\u8fc7<code>pack<\/code>\u65b9\u6cd5\u4e2d\u7684<code>fill=tk.Y<\/code>\u53c2\u6570\uff0c\u4f7f\u5176\u5728\u5782\u76f4\u4e0a\u586b\u5145\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u51e0\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5728Tkinter\u754c\u9762\u4e0a\u7ed8\u5236\u5404\u79cd\u6837\u5f0f\u548c\u65b9\u5411\u7684\u5206\u5272\u7ebf\u3002<strong>\u4f7f\u7528Canvas\u53ef\u4ee5\u7075\u6d3b\u5730\u81ea\u5b9a\u4e49\u5206\u5272\u7ebf\u7684\u6837\u5f0f\u548c\u4f4d\u7f6e<\/strong>\uff0c\u9002\u7528\u4e8e\u9700\u8981\u590d\u6742\u7ed8\u56fe\u7684\u573a\u666f\uff1b<strong>\u4f7f\u7528Frame\u548cttk.Separator\u5219\u66f4\u52a0\u7b80\u6d01<\/strong>\uff0c\u9002\u7528\u4e8e\u7b80\u5355\u7684\u5206\u5272\u7ebf\u9700\u6c42\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u754c\u9762\u7684\u7f8e\u89c2\u5ea6\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u662f\u4f7f\u7528Canvas\u3001Frame\u8fd8\u662fttk.Separator\uff0c\u6211\u4eec\u90fd\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u76f8\u5173\u53c2\u6570\u6765\u5b9e\u73b0\u4e0d\u540c\u98ce\u683c\u7684\u5206\u5272\u7ebf\uff0c\u4e3a\u754c\u9762\u7684\u5e03\u5c40\u63d0\u4f9b\u66f4\u591a\u53ef\u80fd\u6027\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u4f60\u5728Tkinter\u754c\u9762\u5f00\u53d1\u4e2d\u66f4\u597d\u5730\u4f7f\u7528\u5206\u5272\u7ebf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Tkinter\u4e2d\u7ed8\u5236\u5206\u5272\u7ebf\uff1f<\/strong><br \/>\u5728Tkinter\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Canvas\u7ec4\u4ef6\u6765\u7ed8\u5236\u5206\u5272\u7ebf\u3002\u901a\u8fc7\u521b\u5efa\u4e00\u6761\u7ebf\u7684\u5750\u6807\uff0c\u8c03\u7528<code>create_line<\/code>\u65b9\u6cd5\u5373\u53ef\u3002\u4f8b\u5982\uff0c<code>canvas.create_line(x1, y1, x2, y2)<\/code>\u53ef\u4ee5\u5728\u6307\u5b9a\u7684\u5750\u6807\u4e4b\u95f4\u7ed8\u5236\u4e00\u6761\u7ebf\u3002<\/p>\n<p><strong>\u5206\u5272\u7ebf\u7684\u6837\u5f0f\u5982\u4f55\u81ea\u5b9a\u4e49\uff1f<\/strong><br \/>\u5728Tkinter\u7684Canvas\u4e0a\u7ed8\u5236\u5206\u5272\u7ebf\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u81ea\u5b9a\u4e49\u7ebf\u6761\u7684\u989c\u8272\u3001\u5bbd\u5ea6\u548c\u6837\u5f0f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>fill<\/code>\u53c2\u6570\u8bbe\u7f6e\u989c\u8272\uff0c\u4f7f\u7528<code>width<\/code>\u8bbe\u7f6e\u7ebf\u5bbd\uff0c\u4f7f\u7528<code>dash<\/code>\u53c2\u6570\u8bbe\u7f6e\u865a\u7ebf\u6837\u5f0f\uff0c\u5982<code>canvas.create_line(x1, y1, x2, y2, fill=&#39;red&#39;, width=2, dash=(4, 2))<\/code>\u5c06\u7ed8\u5236\u4e00\u6761\u7ea2\u8272\u865a\u7ebf\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Tkinter\u7a97\u53e3\u4e2d\u52a8\u6001\u66f4\u65b0\u5206\u5272\u7ebf\u7684\u4f4d\u7f6e\uff1f<\/strong><br \/>\u8981\u52a8\u6001\u66f4\u65b0\u5206\u5272\u7ebf\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>coords<\/code>\u65b9\u6cd5\u6539\u53d8\u7ebf\u6761\u7684\u5750\u6807\u3002\u9996\u5148\u7ed8\u5236\u5206\u5272\u7ebf\u540e\uff0c\u4f7f\u7528<code>canvas.coords(line_id, new_x1, new_y1, new_x2, new_y2)<\/code>\u6765\u66f4\u65b0\u7ebf\u6761\u7684\u8d77\u59cb\u548c\u7ed3\u675f\u5750\u6807\u3002\u7ed3\u5408\u4e8b\u4ef6\u7ed1\u5b9a\u6216\u5b9a\u65f6\u5668\uff0c\u53ef\u4ee5\u5b9e\u73b0\u7ebf\u6761\u968f\u7528\u6237\u64cd\u4f5c\u800c\u52a8\u6001\u53d8\u5316\u7684\u6548\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u7684Tkinter\u754c\u9762\u4e0a\u753b\u5206\u5272\u7ebf\u7684\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Canvas\u3001Frame\u3001ttk.Separat [&hellip;]","protected":false},"author":3,"featured_media":1137104,"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\/1137102"}],"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=1137102"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1137102\/revisions"}],"predecessor-version":[{"id":1137106,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1137102\/revisions\/1137106"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1137104"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1137102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1137102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1137102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}