{"id":1063781,"date":"2024-12-31T16:03:29","date_gmt":"2024-12-31T08:03:29","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1063781.html"},"modified":"2024-12-31T16:03:31","modified_gmt":"2024-12-31T08:03:31","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e6%ad%a3n%e8%be%b9%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1063781.html","title":{"rendered":"\u5982\u4f55\u7528python\u753b\u6b63n\u8fb9\u5f62"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/0358dc56-e7f9-48a0-be3e-20e6f0bbe5dd.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528python\u753b\u6b63n\u8fb9\u5f62\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u7528Python\u753b\u6b63n\u8fb9\u5f62<\/strong><\/p>\n<\/p>\n<p><p>\u7528Python\u753b\u6b63n\u8fb9\u5f62\u7684\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\uff1a<strong>\u4f7f\u7528Turtle\u5e93\u3001\u4f7f\u7528Matplotlib\u5e93\u3001\u7406\u89e3\u6b63n\u8fb9\u5f62\u7684\u51e0\u4f55\u7279\u6027\u3001\u7f16\u5199\u51fd\u6570\u5b9e\u73b0\u81ea\u52a8\u7ed8\u5236<\/strong>\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5229\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u7ed8\u5236\u6b63n\u8fb9\u5f62\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u5b9e\u9645\u7684\u4ee3\u7801\u793a\u4f8b\u548c\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><p>\u7ed8\u5236\u6b63n\u8fb9\u5f62\u7684\u6838\u5fc3\u5728\u4e8e\u7406\u89e3\u5176\u51e0\u4f55\u7279\u6027\uff1a\u6b63n\u8fb9\u5f62\u6bcf\u4e2a\u5185\u89d2\u7684\u5ea6\u6570\u662f(180*(n-2))\/n\u5ea6\uff0c\u6bcf\u4e2a\u5916\u89d2\u7684\u5ea6\u6570\u662f360\/n\u5ea6\u3002\u4f7f\u7528\u8fd9\u4e9b\u89d2\u5ea6\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528Python\u4e2d\u7684\u7ed8\u56fe\u5e93\u6765\u9010\u8fb9\u7ed8\u5236\u591a\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u6b63n\u8fb9\u5f62<\/strong><\/h2>\n<p><p>Turtle\u5e93\u662fPython\u4e2d\u4e00\u4e2a\u975e\u5e38\u76f4\u89c2\u548c\u6613\u7528\u7684\u7ed8\u56fe\u5e93\uff0c\u7279\u522b\u9002\u5408\u521d\u5b66\u8005\u5b66\u4e60\u7ed8\u56fe\u548c\u7f16\u7a0b\u3002\u6211\u4eec\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u7528\u5b83\u6765\u7ed8\u5236\u6b63n\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u5b89\u88c5\u548c\u5bfc\u5165Turtle\u5e93<\/h2>\n<\/p>\n<p><p>Turtle\u5e93\u901a\u5e38\u968fPython\u5b89\u88c5\u5305\u4e00\u8d77\u63d0\u4f9b\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install PythonTurtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bfc\u5165Turtle\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u7ed8\u5236\u6b63n\u8fb9\u5f62\u7684\u51fd\u6570<\/h2>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\u6765\u7ed8\u5236\u6b63n\u8fb9\u5f62\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def draw_polygon(sides, length):<\/p>\n<p>    angle = 360 \/ sides<\/p>\n<p>    for _ in range(sides):<\/p>\n<p>        turtle.forward(length)<\/p>\n<p>        turtle.right(angle)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0c<code>sides<\/code>\u8868\u793a\u6b63\u591a\u8fb9\u5f62\u7684\u8fb9\u6570\uff0c<code>length<\/code>\u8868\u793a\u6bcf\u6761\u8fb9\u7684\u957f\u5ea6\u3002\u51fd\u6570\u7684\u6838\u5fc3\u5728\u4e8e\u5229\u7528Turtle\u5e93\u7684<code>forward<\/code>\u548c<code>right<\/code>\u65b9\u6cd5\u9010\u8fb9\u7ed8\u5236\u591a\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<p><h2>3\u3001\u4f7f\u7528\u51fd\u6570\u7ed8\u5236\u6b63n\u8fb9\u5f62<\/h2>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u8c03\u7528\u4e0a\u9762\u7684\u51fd\u6570\u6765\u7ed8\u5236\u4e0d\u540c\u8fb9\u6570\u7684\u6b63\u591a\u8fb9\u5f62\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">turtle.speed(1)  # \u8bbe\u7f6e\u7ed8\u56fe\u901f\u5ea6<\/p>\n<p>draw_polygon(5, 100)  # \u7ed8\u5236\u4e00\u4e2a\u8fb9\u957f\u4e3a100\u7684\u6b63\u4e94\u8fb9\u5f62<\/p>\n<p>turtle.done()  # \u7ed8\u56fe\u5b8c\u6210\u540e\u505c\u6b62\u7ed8\u56fe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8c03\u6574<code>sides<\/code>\u548c<code>length<\/code>\u7684\u503c\uff0c\u6211\u4eec\u53ef\u4ee5\u7ed8\u5236\u4efb\u610f\u8fb9\u6570\u548c\u8fb9\u957f\u7684\u6b63\u591a\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<h2><strong>\u4e8c\u3001\u4f7f\u7528Matplotlib\u5e93\u7ed8\u5236\u6b63n\u8fb9\u5f62<\/strong><\/h2>\n<p><p>Matplotlib\u662fPython\u4e2d\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u4e3b\u8981\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u51e0\u4f55\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u5b89\u88c5\u548c\u5bfc\u5165Matplotlib\u5e93<\/h2>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bfc\u5165Matplotlib\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u7ed8\u5236\u6b63n\u8fb9\u5f62\u7684\u51fd\u6570<\/h2>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5229\u7528Matplotlib\u5e93\u7ed8\u5236\u6b63n\u8fb9\u5f62\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def draw_polygon(sides, radius):<\/p>\n<p>    angles = np.linspace(0, 2 * np.pi, sides, endpoint=False)<\/p>\n<p>    points = [(np.cos(angle) * radius, np.sin(angle) * radius) for angle in angles]<\/p>\n<p>    points.append(points[0])  # \u95ed\u5408\u591a\u8fb9\u5f62<\/p>\n<p>    points = np.array(points)<\/p>\n<p>    plt.figure(figsize=(6, 6))<\/p>\n<p>    plt.plot(points[:, 0], points[:, 1])<\/p>\n<p>    plt.gca().set_aspect(&#39;equal&#39;, adjustable=&#39;box&#39;)<\/p>\n<p>    plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0c<code>sides<\/code>\u8868\u793a\u6b63\u591a\u8fb9\u5f62\u7684\u8fb9\u6570\uff0c<code>radius<\/code>\u8868\u793a\u6b63\u591a\u8fb9\u5f62\u7684\u5916\u63a5\u5706\u534a\u5f84\u3002\u6211\u4eec\u5229\u7528<code>numpy<\/code>\u5e93\u751f\u6210\u591a\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807\uff0c\u5e76\u7528<code>matplotlib<\/code>\u5e93\u7ed8\u5236\u591a\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<p><h2>3\u3001\u4f7f\u7528\u51fd\u6570\u7ed8\u5236\u6b63n\u8fb9\u5f62<\/h2>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u8c03\u7528\u4e0a\u9762\u7684\u51fd\u6570\u6765\u7ed8\u5236\u4e0d\u540c\u8fb9\u6570\u7684\u6b63\u591a\u8fb9\u5f62\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">draw_polygon(6, 1)  # \u7ed8\u5236\u4e00\u4e2a\u5916\u63a5\u5706\u534a\u5f84\u4e3a1\u7684\u6b63\u516d\u8fb9\u5f62<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8c03\u6574<code>sides<\/code>\u548c<code>radius<\/code>\u7684\u503c\uff0c\u6211\u4eec\u53ef\u4ee5\u7ed8\u5236\u4efb\u610f\u8fb9\u6570\u548c\u5916\u63a5\u5706\u534a\u5f84\u7684\u6b63\u591a\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<h2><strong>\u4e09\u3001\u7406\u89e3\u6b63n\u8fb9\u5f62\u7684\u51e0\u4f55\u7279\u6027<\/strong><\/h2>\n<p><p>\u7406\u89e3\u6b63n\u8fb9\u5f62\u7684\u51e0\u4f55\u7279\u6027\u5bf9\u4e8e\u7f16\u5199\u7ed8\u5236\u7b97\u6cd5\u975e\u5e38\u91cd\u8981\u3002\u6b63n\u8fb9\u5f62\u6bcf\u4e2a\u9876\u70b9\u7684\u5750\u6807\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = r * cos(2 * pi * k \/ n)<\/p>\n<p>y = r * sin(2 * pi * k \/ n)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<code>r<\/code>\u662f\u6b63n\u8fb9\u5f62\u7684\u5916\u63a5\u5706\u534a\u5f84\uff0c<code>n<\/code>\u662f\u8fb9\u6570\uff0c<code>k<\/code>\u662f\u9876\u70b9\u7684\u7d22\u5f15\uff08\u4ece0\u5230n-1\uff09\u3002<\/p>\n<\/p>\n<h2><strong>\u56db\u3001\u7f16\u5199\u51fd\u6570\u5b9e\u73b0\u81ea\u52a8\u7ed8\u5236<\/strong><\/h2>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u901a\u7528\u7684\u51fd\u6570\uff0c\u901a\u8fc7\u6307\u5b9a\u8fb9\u6570\u3001\u8fb9\u957f\u6216\u5916\u63a5\u5706\u534a\u5f84\u6765\u81ea\u52a8\u7ed8\u5236\u6b63n\u8fb9\u5f62\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>import math<\/p>\n<p>def draw_polygon(sides, length):<\/p>\n<p>    angle = 360 \/ sides<\/p>\n<p>    for _ in range(sides):<\/p>\n<p>        turtle.forward(length)<\/p>\n<p>        turtle.right(angle)<\/p>\n<p>def draw_polygon_auto(sides, radius):<\/p>\n<p>    angle = 360 \/ sides<\/p>\n<p>    length = 2 * radius * math.sin(math.pi \/ sides)<\/p>\n<p>    for _ in range(sides):<\/p>\n<p>        turtle.forward(length)<\/p>\n<p>        turtle.right(angle)<\/p>\n<h2><strong>\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62<\/strong><\/h2>\n<p>turtle.speed(1)<\/p>\n<p>draw_polygon_auto(5, 100)<\/p>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u8ba1\u7b97\u6b63n\u8fb9\u5f62\u7684\u8fb9\u957f\uff0c\u7136\u540e\u5229\u7528Turtle\u5e93\u9010\u8fb9\u7ed8\u5236\u591a\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<h2><strong>\u4e94\u3001\u603b\u7ed3<\/strong><\/h2>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u5b66\u4e60\u4e86\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u6b63n\u8fb9\u5f62\uff0c\u5305\u62ec\u4f7f\u7528Turtle\u5e93\u548cMatplotlib\u5e93\u7684\u5177\u4f53\u65b9\u6cd5\uff0c\u4ee5\u53ca\u7406\u89e3\u6b63n\u8fb9\u5f62\u7684\u51e0\u4f55\u7279\u6027\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u80fd\u591f\u8ba9\u4f60\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u66f4\u52a0\u5f97\u5fc3\u5e94\u624b\u5730\u7ed8\u5236\u5404\u79cd\u51e0\u4f55\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><p>\u7ed8\u5236\u6b63n\u8fb9\u5f62\u4e0d\u4ec5\u662f\u4e00\u4e2a\u6709\u8da3\u7684\u7f16\u7a0b\u7ec3\u4e60\uff0c\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7406\u89e3\u51e0\u4f55\u5b66\u548c\u7f16\u7a0b\u7684\u7ed3\u5408\u3002\u5e0c\u671b\u4f60\u80fd\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u548c\u4ee3\u7801\u793a\u4f8b\uff0c\u63a2\u7d22\u66f4\u591a\u6709\u8da3\u7684\u51e0\u4f55\u56fe\u5f62\u7ed8\u5236\uff0c\u5e76\u5c06\u8fd9\u4e9b\u6280\u80fd\u5e94\u7528\u5230\u66f4\u590d\u6742\u7684\u9879\u76ee\u4e2d\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u4f7f\u7528Python\u7ed8\u5236\u6b63n\u8fb9\u5f62\u7684\u6700\u4f73\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u662f\u7ed8\u5236\u6b63n\u8fb9\u5f62\u7684\u5e38\u7528\u65b9\u6cd5\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u5305\u542bn\u4e2a\u9876\u70b9\u7684\u5750\u6807\u70b9\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528<code>plot<\/code>\u51fd\u6570\u8fde\u63a5\u8fd9\u4e9b\u70b9\u6765\u5b9e\u73b0\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u8ba1\u7b97\u6bcf\u4e2a\u9876\u70b9\u7684\u89d2\u5ea6\u548c\u5750\u6807\uff0c\u6700\u540e\u5c06\u8fd9\u4e9b\u70b9\u901a\u8fc7\u7ebf\u6bb5\u8fde\u63a5\u8d77\u6765\uff0c\u5f62\u6210\u6b63n\u8fb9\u5f62\u7684\u5f62\u72b6\u3002<\/p>\n<p><strong>\u6211\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u5e93\u624d\u80fd\u7528Python\u7ed8\u5236\u6b63n\u8fb9\u5f62\uff1f<\/strong><br \/>\u4e3a\u4e86\u7ed8\u5236\u6b63n\u8fb9\u5f62\uff0c\u63a8\u8350\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u3002\u8fd9\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u80fd\u591f\u5e2e\u52a9\u4f60\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u5f62\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7<code>pip install matplotlib<\/code>\u547d\u4ee4\u5b89\u88c5\u5b83\u3002\u6b64\u5916\uff0c<code>numpy<\/code>\u5e93\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8fdb\u884c\u6570\u5b66\u8ba1\u7b97\uff0c\u4f7f\u7528<code>pip install numpy<\/code>\u8fdb\u884c\u5b89\u88c5\u4e5f\u4f1a\u5f88\u6709\u5e2e\u52a9\u3002<\/p>\n<p><strong>\u5728\u7ed8\u5236\u6b63n\u8fb9\u5f62\u65f6\uff0c\u5982\u4f55\u81ea\u5b9a\u4e49\u8fb9\u5f62\u7684\u989c\u8272\u548c\u7ebf\u6761\u6837\u5f0f\uff1f<\/strong><br \/>\u5728<code>matplotlib<\/code>\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>plot<\/code>\u51fd\u6570\u7684\u53c2\u6570\u6765\u81ea\u5b9a\u4e49\u8fb9\u5f62\u7684\u989c\u8272\u548c\u7ebf\u6761\u6837\u5f0f\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>color<\/code>\u53c2\u6570\u8bbe\u7f6e\u8fb9\u6846\u989c\u8272\uff0c\u4f7f\u7528<code>linestyle<\/code>\u53c2\u6570\u8bbe\u7f6e\u7ebf\u6761\u7684\u6837\u5f0f\uff08\u5982\u865a\u7ebf\u3001\u5b9e\u7ebf\u7b49\uff09\u3002\u4f8b\u5982\uff0c<code>plt.plot(x, y, color=&#39;blue&#39;, linestyle=&#39;--&#39;)<\/code>\u5c06\u7ed8\u5236\u4e00\u4e2a\u84dd\u8272\u865a\u7ebf\u7684\u6b63n\u8fb9\u5f62\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u7528Python\u753b\u6b63n\u8fb9\u5f62 \u7528Python\u753b\u6b63n\u8fb9\u5f62\u7684\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Turtle\u5e93\u3001\u4f7f\u7528Matplotl [&hellip;]","protected":false},"author":3,"featured_media":1063785,"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\/1063781"}],"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=1063781"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1063781\/revisions"}],"predecessor-version":[{"id":1063786,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1063781\/revisions\/1063786"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1063785"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1063781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1063781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1063781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}