{"id":1046704,"date":"2024-12-31T13:35:40","date_gmt":"2024-12-31T05:35:40","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1046704.html"},"modified":"2024-12-31T13:35:45","modified_gmt":"2024-12-31T05:35:45","slug":"python%e5%a6%82%e4%bd%95%e5%81%9a%e6%b8%90%e5%8f%98%e8%83%8c%e6%99%af%e8%89%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1046704.html","title":{"rendered":"python\u5982\u4f55\u505a\u6e10\u53d8\u80cc\u666f\u8272"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/f553c370-cd23-4189-91b4-a8fc9b38e78c.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u505a\u6e10\u53d8\u80cc\u666f\u8272\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5236\u4f5c\u6e10\u53d8\u80cc\u666f\u8272\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u56fe\u50cf\u5904\u7406\u5e93\uff08\u5982PIL\uff09\u3001\u4f7f\u7528\u53ef\u89c6\u5316\u5e93\uff08\u5982Matplotlib\uff09\u548c\u4f7f\u7528GUI\u5e93\uff08\u5982Tkinter\uff09<\/strong>\u3002\u4e0b\u9762\u5c06\u91cd\u70b9\u4ecb\u7ecd\u4f7f\u7528PIL\u5e93\u6765\u521b\u5efa\u6e10\u53d8\u80cc\u666f\u8272\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528PIL\uff08Python Imaging Library\uff09\u7684Image\u548cImageDraw\u6a21\u5757\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u6e10\u53d8\u80cc\u666f\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7684\u6838\u5fc3\u662f\u904d\u5386\u56fe\u50cf\u7684\u6bcf\u4e00\u4e2a\u50cf\u7d20\uff0c\u6839\u636e\u5176\u4f4d\u7f6e\u8ba1\u7b97\u989c\u8272\u503c\u5e76\u586b\u5145\u3002\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5bfc\u5165PIL\u5e93\u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u56fe\u50cf<\/strong>\u3002<\/li>\n<li><strong>\u5b9a\u4e49\u6e10\u53d8\u7684\u989c\u8272\u8303\u56f4<\/strong>\u3002<\/li>\n<li><strong>\u904d\u5386\u56fe\u50cf\u50cf\u7d20\u5e76\u6839\u636e\u4f4d\u7f6e\u8ba1\u7b97\u989c\u8272\u503c<\/strong>\u3002<\/li>\n<li><strong>\u4fdd\u5b58\u5e76\u663e\u793a\u751f\u6210\u7684\u56fe\u50cf<\/strong>\u3002<\/li>\n<\/ol>\n<p><h3>\u4e00\u3001\u5bfc\u5165PIL\u5e93\u5e76\u521b\u5efa\u65b0\u56fe\u50cf<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5PIL\u5e93\uff08\u73b0\u4e3aPillow\uff09\uff0c\u7136\u540e\u5bfc\u5165\u76f8\u5173\u6a21\u5757\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a\u767d\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<h2><strong>\u56fe\u50cf\u5c3a\u5bf8<\/strong><\/h2>\n<p>width, height = 800, 600<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a\u767d\u56fe\u50cf<\/strong><\/h2>\n<p>image = Image.new(&#39;RGB&#39;, (width, height))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b9a\u4e49\u6e10\u53d8\u7684\u989c\u8272\u8303\u56f4<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u521b\u5efa\u6e10\u53d8\u6548\u679c\uff0c\u6211\u4eec\u9700\u8981\u5b9a\u4e49\u8d77\u59cb\u989c\u8272\u548c\u7ed3\u675f\u989c\u8272\u3002\u5047\u8bbe\u6211\u4eec\u5e0c\u671b\u4ece\u84dd\u8272\u6e10\u53d8\u5230\u7eff\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u6e10\u53d8\u7684\u8d77\u59cb\u989c\u8272\u548c\u7ed3\u675f\u989c\u8272<\/p>\n<p>start_color = (0, 0, 255)  # \u84dd\u8272<\/p>\n<p>end_color = (0, 255, 0)    # \u7eff\u8272<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u904d\u5386\u56fe\u50cf\u50cf\u7d20\u5e76\u6839\u636e\u4f4d\u7f6e\u8ba1\u7b97\u989c\u8272\u503c<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u904d\u5386\u56fe\u50cf\u7684\u6bcf\u4e00\u4e2a\u50cf\u7d20\u4f4d\u7f6e\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u5176\u4f4d\u7f6e\u8ba1\u7b97\u51fa\u76f8\u5e94\u7684\u989c\u8272\u503c\u3002\u8fd9\u91cc\u5047\u8bbe\u6211\u4eec\u521b\u5efa\u7684\u662f\u4ece\u4e0a\u5230\u4e0b\u7684\u5782\u76f4\u6e10\u53d8\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6ImageDraw\u5bf9\u8c61<\/p>\n<p>draw = ImageDraw.Draw(image)<\/p>\n<p>for y in range(height):<\/p>\n<p>    # \u8ba1\u7b97\u5f53\u524d\u884c\u7684\u989c\u8272<\/p>\n<p>    r = int(start_color[0] + (end_color[0] - start_color[0]) * (y \/ height))<\/p>\n<p>    g = int(start_color[1] + (end_color[1] - start_color[1]) * (y \/ height))<\/p>\n<p>    b = int(start_color[2] + (end_color[2] - start_color[2]) * (y \/ height))<\/p>\n<p>    color = (r, g, b)<\/p>\n<p>    # \u753b\u4e00\u6761\u6c34\u5e73\u7ebf<\/p>\n<p>    draw.line([(0, y), (width, y)], fill=color)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4fdd\u5b58\u5e76\u663e\u793a\u751f\u6210\u7684\u56fe\u50cf<\/h3>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u5c06\u751f\u6210\u7684\u56fe\u50cf\u4fdd\u5b58\u5230\u6587\u4ef6\u5e76\u663e\u793a\u51fa\u6765\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58\u56fe\u50cf<\/p>\n<p>image.save(&#39;gradient_background.png&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u66f4\u591a\u6e10\u53d8\u6548\u679c<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u60a8\u8fd8\u53ef\u4ee5\u521b\u5efa\u5176\u4ed6\u65b9\u5411\u548c\u6837\u5f0f\u7684\u6e10\u53d8\u80cc\u666f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u6c34\u5e73\u6e10\u53d8<\/strong>\uff1a\u904d\u5386\u56fe\u50cf\u7684\u6bcf\u4e00\u5217\u800c\u4e0d\u662f\u6bcf\u4e00\u884c\u3002<\/li>\n<li><strong>\u5bf9\u89d2\u6e10\u53d8<\/strong>\uff1a\u540c\u65f6\u904d\u5386\u884c\u548c\u5217\uff0c\u6839\u636e\u4e24\u8005\u7684\u6bd4\u4f8b\u8ba1\u7b97\u989c\u8272\u3002<\/li>\n<li><strong>\u591a\u91cd\u6e10\u53d8<\/strong>\uff1a\u901a\u8fc7\u8bbe\u7f6e\u591a\u4e2a\u989c\u8272\u8282\u70b9\uff0c\u5b9e\u73b0\u590d\u6742\u7684\u6e10\u53d8\u6548\u679c\u3002<\/li>\n<\/ul>\n<p><h3>\u6c34\u5e73\u6e10\u53d8\u793a\u4f8b<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">for x in range(width):<\/p>\n<p>    # \u8ba1\u7b97\u5f53\u524d\u5217\u7684\u989c\u8272<\/p>\n<p>    r = int(start_color[0] + (end_color[0] - start_color[0]) * (x \/ width))<\/p>\n<p>    g = int(start_color[1] + (end_color[1] - start_color[1]) * (x \/ width))<\/p>\n<p>    b = int(start_color[2] + (end_color[2] - start_color[2]) * (x \/ width))<\/p>\n<p>    color = (r, g, b)<\/p>\n<p>    # \u753b\u4e00\u6761\u5782\u76f4\u7ebf<\/p>\n<p>    draw.line([(x, 0), (x, height)], fill=color)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u591a\u91cd\u6e10\u53d8\u793a\u4f8b<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u591a\u4e2a\u989c\u8272\u8282\u70b9<\/p>\n<p>colors = [(255, 0, 0), (255, 255, 0), (0, 255, 0), (0, 255, 255), (0, 0, 255)]<\/p>\n<p>num_colors = len(colors)<\/p>\n<p>for y in range(height):<\/p>\n<p>    # \u5f53\u524d\u884c\u6240\u5904\u7684\u989c\u8272\u6bb5<\/p>\n<p>    segment = y \/ (height \/ (num_colors - 1))<\/p>\n<p>    index = int(segment)<\/p>\n<p>    if index &gt;= num_colors - 1:<\/p>\n<p>        index = num_colors - 2<\/p>\n<p>    start_color = colors[index]<\/p>\n<p>    end_color = colors[index + 1]<\/p>\n<p>    # \u8ba1\u7b97\u5f53\u524d\u884c\u7684\u989c\u8272<\/p>\n<p>    ratio = segment - index<\/p>\n<p>    r = int(start_color[0] + (end_color[0] - start_color[0]) * ratio)<\/p>\n<p>    g = int(start_color[1] + (end_color[1] - start_color[1]) * ratio)<\/p>\n<p>    b = int(start_color[2] + (end_color[2] - start_color[2]) * ratio)<\/p>\n<p>    color = (r, g, b)<\/p>\n<p>    # \u753b\u4e00\u6761\u6c34\u5e73\u7ebf<\/p>\n<p>    draw.line([(0, y), (width, y)], fill=color)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4f7f\u7528\u5176\u4ed6\u5e93\u5b9e\u73b0\u6e10\u53d8\u6548\u679c<\/h3>\n<\/p>\n<p><p>\u9664\u4e86PIL\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u5e93\u6765\u5b9e\u73b0\u6e10\u53d8\u80cc\u666f\u6548\u679c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>Matplotlib<\/strong>\uff1a\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\uff0c\u4e5f\u53ef\u4ee5\u751f\u6210\u6e10\u53d8\u80cc\u666f\u3002<\/li>\n<li><strong>Tkinter<\/strong>\uff1a\u7528\u4e8eGUI\u5e94\u7528\u5f00\u53d1\uff0c\u53ef\u4ee5\u521b\u5efa\u6e10\u53d8\u80cc\u666f\u7684\u7a97\u53e3\u3002<\/li>\n<\/ol>\n<p><h3>\u4f7f\u7528Matplotlib\u751f\u6210\u6e10\u53d8\u80cc\u666f<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import numpy as np<\/p>\n<h2><strong>\u56fe\u50cf\u5c3a\u5bf8<\/strong><\/h2>\n<p>width, height = 800, 600<\/p>\n<h2><strong>\u521b\u5efa\u6e10\u53d8\u80cc\u666f\u6570\u636e<\/strong><\/h2>\n<p>gradient = np.linspace(0, 1, height)<\/p>\n<p>gradient = np.vstack((gradient, gradient))<\/p>\n<h2><strong>\u663e\u793a\u6e10\u53d8\u80cc\u666f<\/strong><\/h2>\n<p>fig, ax = plt.subplots(figsize=(width\/100, height\/100))<\/p>\n<p>ax.imshow(gradient, aspect=&#39;auto&#39;, cmap=plt.get_cmap(&#39;Blues&#39;))<\/p>\n<p>ax.axis(&#39;off&#39;)  # \u5173\u95ed\u5750\u6807\u8f74<\/p>\n<p>plt.savefig(&#39;gradient_background_matplotlib.png&#39;, bbox_inches=&#39;tight&#39;, pad_inches=0)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4f7f\u7528Tkinter\u521b\u5efa\u6e10\u53d8\u80cc\u666f<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def create_gradient(canvas, width, height, start_color, end_color):<\/p>\n<p>    for i in range(height):<\/p>\n<p>        ratio = i \/ height<\/p>\n<p>        r = int(start_color[0] + (end_color[0] - start_color[0]) * ratio)<\/p>\n<p>        g = int(start_color[1] + (end_color[1] - start_color[1]) * ratio)<\/p>\n<p>        b = int(start_color[2] + (end_color[2] - start_color[2]) * ratio)<\/p>\n<p>        color = f&#39;#{r:02x}{g:02x}{b:02x}&#39;<\/p>\n<p>        canvas.create_line(0, i, width, i, fill=color)<\/p>\n<h2><strong>\u521b\u5efaTkinter\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>width, height = 800, 600<\/p>\n<p>canvas = tk.Canvas(root, width=width, height=height)<\/p>\n<p>canvas.pack()<\/p>\n<h2><strong>\u5b9a\u4e49\u6e10\u53d8\u989c\u8272<\/strong><\/h2>\n<p>start_color = (0, 0, 255)<\/p>\n<p>end_color = (0, 255, 0)<\/p>\n<h2><strong>\u521b\u5efa\u6e10\u53d8\u80cc\u666f<\/strong><\/h2>\n<p>create_gradient(canvas, width, height, start_color, end_color)<\/p>\n<h2><strong>\u8fd0\u884cTkinter\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><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728Python\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684\u5e93\u521b\u5efa\u5404\u79cd\u6837\u5f0f\u7684\u6e10\u53d8\u80cc\u666f\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\uff0c\u9009\u62e9\u9002\u5408\u60a8\u7684\u65b9\u6cd5\u53ef\u4ee5\u66f4\u597d\u5730\u5b9e\u73b0\u6240\u9700\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u6e10\u53d8\u80cc\u666f\u8272\u7684\u5e93\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528\u6e10\u53d8\u80cc\u666f\u8272\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u56fe\u5f62\u5e93\u5b9e\u73b0\u3002\u5e38\u7528\u7684\u5e93\u5305\u62ecPygame\u3001Tkinter\u548cMatplotlib\u7b49\u3002Pygame\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u6e38\u620f\u754c\u9762\uff0cTkinter\u9002\u5408\u4e8e\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u800cMatplotlib\u5219\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u3002\u5728\u8fd9\u4e9b\u5e93\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u989c\u8272\u6e10\u53d8\u7684\u7b97\u6cd5\uff0c\u52a8\u6001\u751f\u6210\u80cc\u666f\u8272\u3002<\/p>\n<p><strong>\u5b9e\u73b0\u6e10\u53d8\u80cc\u666f\u8272\u7684\u57fa\u672c\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5b9e\u73b0\u6e10\u53d8\u80cc\u666f\u8272\u901a\u5e38\u9700\u8981\u5b9a\u4e49\u8d77\u59cb\u548c\u7ed3\u675f\u989c\u8272\uff0c\u7136\u540e\u8ba1\u7b97\u4e2d\u95f4\u7684\u989c\u8272\u503c\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\uff1a  <\/p>\n<ol>\n<li>\u786e\u5b9a\u8d77\u59cb\u989c\u8272\u548c\u7ed3\u675f\u989c\u8272\u7684RGB\u503c\u3002  <\/li>\n<li>\u6839\u636e\u9700\u8981\u7684\u6e10\u53d8\u6b65\u6570\uff0c\u8ba1\u7b97\u6bcf\u4e00\u6b65\u7684\u989c\u8272\u53d8\u5316\u91cf\u3002  <\/li>\n<li>\u5728\u7ed8\u5236\u80cc\u666f\u65f6\uff0c\u6839\u636e\u8ba1\u7b97\u51fa\u7684\u989c\u8272\u503c\u9010\u6b65\u586b\u5145\u80cc\u666f\u3002<\/li>\n<\/ol>\n<p><strong>\u6e10\u53d8\u80cc\u666f\u8272\u5728\u7528\u6237\u754c\u9762\u8bbe\u8ba1\u4e2d\u7684\u5e94\u7528\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u6e10\u53d8\u80cc\u666f\u8272\u5728\u7528\u6237\u754c\u9762\u8bbe\u8ba1\u4e2d\u5e94\u7528\u5e7f\u6cdb\u3002\u5b83\u53ef\u4ee5\u589e\u5f3a\u89c6\u89c9\u5438\u5f15\u529b\uff0c\u63d0\u5347\u7528\u6237\u4f53\u9a8c\uff0c\u521b\u9020\u6df1\u5ea6\u548c\u5c42\u6b21\u611f\u3002\u6bd4\u5982\uff0c\u6e10\u53d8\u53ef\u4ee5\u7528\u4e8e\u7f51\u9875\u80cc\u666f\u3001\u6309\u94ae\u3001\u5361\u7247\u6216\u5176\u4ed6\u754c\u9762\u5143\u7d20\uff0c\u5e2e\u52a9\u5f15\u5bfc\u7528\u6237\u6ce8\u610f\u529b\u3002\u540c\u65f6\uff0c\u5408\u7406\u7684\u6e10\u53d8\u8272\u5f69\u7ec4\u5408\u8fd8\u80fd\u4f20\u8fbe\u54c1\u724c\u5f62\u8c61\u548c\u60c5\u611f\uff0c\u589e\u52a0\u6574\u4f53\u8bbe\u8ba1\u7684\u4e13\u4e1a\u611f\u548c\u7f8e\u89c2\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5236\u4f5c\u6e10\u53d8\u80cc\u666f\u8272\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u56fe\u50cf\u5904\u7406\u5e93\uff08\u5982PIL\uff09\u3001\u4f7f\u7528\u53ef\u89c6\u5316\u5e93\uff08\u5982Matplotlib\uff09\u548c [&hellip;]","protected":false},"author":3,"featured_media":1046725,"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\/1046704"}],"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=1046704"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1046704\/revisions"}],"predecessor-version":[{"id":1046732,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1046704\/revisions\/1046732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1046725"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1046704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1046704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1046704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}