{"id":988571,"date":"2024-12-27T08:03:24","date_gmt":"2024-12-27T00:03:24","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/988571.html"},"modified":"2024-12-27T08:03:27","modified_gmt":"2024-12-27T00:03:27","slug":"python%e5%a6%82%e4%bd%95%e7%94%a8%e5%9c%86%e5%bd%a2%e7%94%bb%e5%9b%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/988571.html","title":{"rendered":"python\u5982\u4f55\u7528\u5706\u5f62\u753b\u56fe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064146\/015f6e75-0d6a-446d-b827-42e360f4e31d.webp\" alt=\"python\u5982\u4f55\u7528\u5706\u5f62\u753b\u56fe\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528matplotlib\u5e93\u3001PIL\u5e93\u3001turtle\u5e93\u6765\u7ed8\u5236\u5706\u5f62\u56fe\u3002<\/strong>\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0cmatplotlib\u5e93\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u7ed8\u56fe\u529f\u80fd\u548c\u7b80\u6d01\u7684API\u3002<strong>matplotlib\u5e93\u7684plt.Circle\u51fd\u6570\u662f\u7ed8\u5236\u5706\u5f62\u7684\u7b80\u5355\u65b9\u6cd5<\/strong>\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e09\u79cd\u65b9\u6cd5\uff0c\u5e76\u63a2\u8ba8\u5b83\u4eec\u5728\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001MATPLOTLIB\u5e93\u753b\u5706<\/p>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\uff0c\u53ef\u4ee5\u8f7b\u677e\u7ed8\u5236\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u5f62\uff0c\u5305\u62ec\u5706\u5f62\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528plt.Circle\u7ed8\u5236\u5706\u5f62<\/strong><\/p>\n<\/p>\n<p><p>plt.Circle\u662fmatplotlib\u5e93\u4e2d\u7528\u4e8e\u7ed8\u5236\u5706\u5f62\u7684\u51fd\u6570\u3002\u5b83\u9700\u8981\u6307\u5b9a\u5706\u5fc3\u5750\u6807\u3001\u534a\u5f84\u4ee5\u53ca\u53ef\u9009\u7684\u989c\u8272\u548c\u586b\u5145\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u56fe\u5f62<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5706\u5f62\uff0c\u5706\u5fc3\u5728(0.5, 0.5)\uff0c\u534a\u5f84\u4e3a0.3<\/strong><\/h2>\n<p>circle = plt.Circle((0.5, 0.5), 0.3, color=&#39;blue&#39;, fill=False)<\/p>\n<h2><strong>\u5c06\u5706\u5f62\u6dfb\u52a0\u5230\u56fe\u5f62\u4e2d<\/strong><\/h2>\n<p>ax.add_artist(circle)<\/p>\n<h2><strong>\u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u8303\u56f4<\/strong><\/h2>\n<p>ax.set_xlim(0, 1)<\/p>\n<p>ax.set_ylim(0, 1)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e<\/strong>\uff1a<code>plt.Circle<\/code>\u51fd\u6570\u521b\u5efa\u4e00\u4e2a\u5706\u5f62\u5bf9\u8c61\uff0c\u7136\u540e\u4f7f\u7528<code>ax.add_artist<\/code>\u5c06\u8be5\u5706\u5f62\u6dfb\u52a0\u5230\u56fe\u5f62\u4e2d\u3002\u901a\u8fc7\u8bbe\u7f6e<code>ax.set_xlim<\/code>\u548c<code>ax.set_ylim<\/code>\u6765\u8c03\u6574\u5750\u6807\u8f74\u7684\u8303\u56f4\uff0c\u4ece\u800c\u4f7f\u5706\u5f62\u663e\u793a\u5728\u5408\u9002\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ed8\u5236\u586b\u5145\u7684\u5706\u5f62<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u7ed8\u5236\u586b\u5145\u7684\u5706\u5f62\uff0c\u53ef\u4ee5\u5c06fill\u53c2\u6570\u8bbe\u7f6e\u4e3aTrue\uff0c\u5e76\u6307\u5b9a\u989c\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>fig, ax = plt.subplots()<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u586b\u5145\u7684\u5706\u5f62<\/strong><\/h2>\n<p>circle = plt.Circle((0.5, 0.5), 0.3, color=&#39;red&#39;, fill=True)<\/p>\n<p>ax.add_artist(circle)<\/p>\n<p>ax.set_xlim(0, 1)<\/p>\n<p>ax.set_ylim(0, 1)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e<\/strong>\uff1a\u5728<code>plt.Circle<\/code>\u51fd\u6570\u4e2d\uff0c\u8bbe\u7f6e<code>fill=True<\/code>\u548c\u6307\u5b9a\u989c\u8272\uff08\u5982<code>color=&#39;red&#39;<\/code>\uff09\u5373\u53ef\u7ed8\u5236\u4e00\u4e2a\u586b\u5145\u7684\u5706\u5f62\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001PIL\u5e93\u753b\u5706<\/p>\n<\/p>\n<p><p>PIL\uff08Python Imaging Library\uff09\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u56fe\u50cf\u5904\u7406\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u548c\u64cd\u4f5c\u56fe\u50cf\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528ImageDraw\u6a21\u5757\u7ed8\u5236\u5706\u5f62<\/strong><\/p>\n<\/p>\n<p><p>PIL\u7684ImageDraw\u6a21\u5757\u63d0\u4f9b\u4e86\u7ed8\u5236\u51e0\u4f55\u56fe\u5f62\u7684\u529f\u80fd\uff0c\u5305\u62ec\u5706\u5f62\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7a7a\u767d\u56fe\u50cf<\/strong><\/h2>\n<p>image = Image.new(&#39;RGB&#39;, (200, 200), &#39;white&#39;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2aImageDraw\u5bf9\u8c61<\/strong><\/h2>\n<p>draw = ImageDraw.Draw(image)<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u5706\u5f62\uff0c\u6307\u5b9a\u5de6\u4e0a\u89d2\u548c\u53f3\u4e0b\u89d2\u7684\u5750\u6807<\/strong><\/h2>\n<p>draw.ellipse((50, 50, 150, 150), outline=&#39;black&#39;, fill=&#39;blue&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e<\/strong>\uff1a<code>draw.ellipse<\/code>\u51fd\u6570\u7528\u4e8e\u7ed8\u5236\u5706\u5f62\uff0c\u901a\u8fc7\u6307\u5b9a\u5de6\u4e0a\u89d2\u548c\u53f3\u4e0b\u89d2\u7684\u5750\u6807\u6765\u5b9a\u4e49\u5706\u5f62\u7684\u8fb9\u754c\u6846\u3002<code>outline<\/code>\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u5706\u5f62\u7684\u8fb9\u6846\u989c\u8272\uff0c<code>fill<\/code>\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u586b\u5145\u989c\u8272\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fdd\u5b58\u5706\u5f62\u56fe\u50cf<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u5c06\u7ed8\u5236\u7684\u5706\u5f62\u56fe\u50cf\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u540e\u7eed\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<p>image = Image.new(&#39;RGB&#39;, (200, 200), &#39;white&#39;)<\/p>\n<p>draw = ImageDraw.Draw(image)<\/p>\n<p>draw.ellipse((50, 50, 150, 150), outline=&#39;black&#39;, fill=&#39;blue&#39;)<\/p>\n<h2><strong>\u4fdd\u5b58\u56fe\u50cf\u5230\u6587\u4ef6<\/strong><\/h2>\n<p>image.save(&#39;circle.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e<\/strong>\uff1a\u4f7f\u7528<code>image.save<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u56fe\u50cf\u4fdd\u5b58\u5230\u6307\u5b9a\u7684\u6587\u4ef6\u8def\u5f84\u3002\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u7ed8\u5236\u7684\u56fe\u5f62\u5e94\u7528\u4e8e\u5176\u4ed6\u9879\u76ee\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001TURTLE\u5e93\u753b\u5706<\/p>\n<\/p>\n<p><p>Turtle\u662fPython\u4e2d\u7684\u4e00\u4e2a\u6807\u51c6\u5e93\uff0c\u901a\u5e38\u7528\u4e8e\u6559\u5b66\u76ee\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u547d\u4ee4\u6765\u7ed8\u5236\u56fe\u5f62\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7ed8\u5236\u7b80\u5355\u7684\u5706\u5f62<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Turtle\u5e93\u53ef\u4ee5\u8f7b\u677e\u7ed8\u5236\u5706\u5f62\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2aTurtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u534a\u5f84\u4e3a100\u7684\u5706\u5f62<\/strong><\/h2>\n<p>t.circle(100)<\/p>\n<h2><strong>\u5173\u95edTurtle\u7ed8\u56fe\u7a97\u53e3<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e<\/strong>\uff1a<code>t.circle<\/code>\u51fd\u6570\u7528\u4e8e\u7ed8\u5236\u5706\u5f62\uff0c\u53c2\u6570\u4e3a\u5706\u7684\u534a\u5f84\u3002<code>turtle.done<\/code>\u7528\u4e8e\u5173\u95edTurtle\u7ed8\u56fe\u7a97\u53e3\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ed8\u5236\u5e26\u989c\u8272\u7684\u5706\u5f62<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u586b\u5145\u989c\u8272\u6765\u7ed8\u5236\u5e26\u989c\u8272\u7684\u5706\u5f62\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6e\u586b\u5145\u989c\u8272<\/strong><\/h2>\n<p>t.fillcolor(&#39;green&#39;)<\/p>\n<h2><strong>\u5f00\u59cb\u586b\u5145<\/strong><\/h2>\n<p>t.begin_fill()<\/p>\n<h2><strong>\u7ed8\u5236\u5706\u5f62<\/strong><\/h2>\n<p>t.circle(100)<\/p>\n<h2><strong>\u7ed3\u675f\u586b\u5145<\/strong><\/h2>\n<p>t.end_fill()<\/p>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u8bf4\u660e<\/strong>\uff1a\u4f7f\u7528<code>t.fillcolor<\/code>\u8bbe\u7f6e\u586b\u5145\u989c\u8272\uff0c\u7136\u540e\u4f7f\u7528<code>t.begin_fill<\/code>\u548c<code>t.end_fill<\/code>\u5305\u56f4\u7ed8\u5236\u5706\u5f62\u7684\u4ee3\u7801\u6bb5\uff0c\u5373\u53ef\u5b9e\u73b0\u5706\u5f62\u586b\u5145\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u603b\u7ed3\u4e0e\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u5706\u5f62\u56fe\u3002Matplotlib\u9002\u5408\u9700\u8981\u590d\u6742\u56fe\u5f62\u548c\u9ad8\u8d28\u91cf\u8f93\u51fa\u7684\u573a\u666f\uff0c\u800cPIL\u9002\u5408\u9700\u8981\u76f4\u63a5\u64cd\u4f5c\u56fe\u50cf\u7684\u573a\u5408\u3002Turtle\u5219\u9002\u5408\u6559\u5b66\u548c\u7b80\u5355\u7ed8\u56fe\u4efb\u52a1\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u573a\u666f<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>Matplotlib<\/strong>\uff1a\u9002\u5408\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u3001\u79d1\u5b66\u8ba1\u7b97\u548c\u9700\u8981\u9ad8\u8d28\u91cf\u56fe\u5f62\u8f93\u51fa\u7684\u5e94\u7528\u3002<\/li>\n<li><strong>PIL<\/strong>\uff1a\u9002\u5408\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u3001\u751f\u6210\u52a8\u6001\u56fe\u5f62\u6216\u9700\u8981\u76f4\u63a5\u64cd\u4f5c\u56fe\u50cf\u50cf\u7d20\u7684\u5e94\u7528\u3002<\/li>\n<li><strong>Turtle<\/strong>\uff1a\u9002\u5408\u7528\u4e8e\u6559\u80b2\u3001\u6559\u5b66\u4ee5\u53ca\u7b80\u5355\u7684\u7ed8\u56fe\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u8fd9\u4e9b\u7ed8\u56fe\u65b9\u6cd5\u5404\u6709\u4f18\u52a3\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u56fe\u5f62\u8d28\u91cf\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u6700\u9002\u5408\u7684\u7ed8\u56fe\u5de5\u5177\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>1. \u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u4e00\u4e2a\u5b8c\u6574\u7684\u5706\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u7ed8\u5236\u5706\u5f62\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5\u8be5\u5e93\uff0c\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pip install matplotlib<\/code>\u547d\u4ee4\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528<code>plt.Circle()<\/code>\u51fd\u6570\u5b9a\u4e49\u5706\u7684\u4e2d\u5fc3\u548c\u534a\u5f84\uff0c\u5e76\u5229\u7528<code>plt.gca().add_artist()<\/code>\u65b9\u6cd5\u5c06\u5176\u6dfb\u52a0\u5230\u7ed8\u56fe\u533a\u57df\u3002\u6700\u540e\uff0c\u8bbe\u7f6e\u5750\u6807\u8f74\u6bd4\u4f8b\u4e3a\u76f8\u7b49\uff0c\u4ee5\u786e\u4fdd\u5706\u5f62\u4e0d\u53d8\u5f62\u3002<\/p>\n<p><strong>2. Python\u4e2d\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5e93\u6765\u7ed8\u5236\u5706\u5f62\u56fe\u5f62\uff1f<\/strong><br \/>\u9664\u4e86<code>matplotlib<\/code>\u4e4b\u5916\uff0cPython\u8fd8\u6709\u5176\u4ed6\u5e93\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u5706\u5f62\u3002\u4f8b\u5982\uff0c<code>turtle<\/code>\u5e93\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u7ed8\u56fe\u529f\u80fd\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002\u4f7f\u7528<code>turtle.circle()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u7ed8\u5236\u5706\u5f62\u3002\u6b64\u5916\uff0c<code>Pygame<\/code>\u5e93\u4e5f\u652f\u6301\u7ed8\u5236\u5706\u5f62\uff0c\u9002\u5408\u9700\u8981\u66f4\u590d\u6742\u56fe\u5f62\u7684\u9879\u76ee\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5728\u7ed8\u5236\u5706\u5f62\u65f6\u81ea\u5b9a\u4e49\u989c\u8272\u548c\u8fb9\u6846\uff1f<\/strong><br \/>\u5728\u4f7f\u7528<code>matplotlib<\/code>\u7ed8\u5236\u5706\u5f62\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>facecolor<\/code>\u548c<code>edgecolor<\/code>\u53c2\u6570\u6765\u81ea\u5b9a\u4e49\u5706\u5f62\u7684\u586b\u5145\u989c\u8272\u548c\u8fb9\u6846\u989c\u8272\u3002\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u5706\u5f62\u65f6\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<code>plt.Circle((x, y), radius, facecolor=&#39;blue&#39;, edgecolor=&#39;red&#39;)<\/code>\u3002\u8fd9\u6837\u53ef\u4ee5\u4f7f\u56fe\u5f62\u66f4\u52a0\u7f8e\u89c2\u548c\u7b26\u5408\u4f60\u7684\u8bbe\u8ba1\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528matplotlib\u5e93\u3001PIL\u5e93\u3001turtle\u5e93\u6765\u7ed8\u5236\u5706\u5f62\u56fe\u3002\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0cmatp [&hellip;]","protected":false},"author":3,"featured_media":988576,"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\/988571"}],"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=988571"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/988571\/revisions"}],"predecessor-version":[{"id":988577,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/988571\/revisions\/988577"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/988576"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=988571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=988571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=988571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}