{"id":1111891,"date":"2025-01-08T17:33:30","date_gmt":"2025-01-08T09:33:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1111891.html"},"modified":"2025-01-08T17:33:33","modified_gmt":"2025-01-08T09:33:33","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python-%e7%94%bb%e4%ba%94%e8%be%b9%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1111891.html","title":{"rendered":"\u5982\u4f55\u7528Python \u753b\u4e94\u8fb9\u5f62"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074144\/d9d9d81a-de96-4a9e-bb51-cd1dd91ffc1d.webp\" alt=\"\u5982\u4f55\u7528Python \u753b\u4e94\u8fb9\u5f62\" \/><\/p>\n<p><p> <strong>\u8981\u7528Python\u753b\u4e94\u8fb9\u5f62\uff0c\u53ef\u4ee5\u4f7f\u7528Turtle\u56fe\u5f62\u5e93\u3001Matplotlib\u5e93\u3001\u6216\u8005Pygame\u5e93\uff0c\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u4e94\u8fb9\u5f62\u3002Turtle\u5e93\u64cd\u4f5c\u7b80\u5355\u3001\u6613\u4e0a\u624b\uff0c\u7279\u522b\u9002\u5408\u521d\u5b66\u8005\u3002<\/strong><\/p>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u5185\u7f6e\u7684\u6807\u51c6\u5e93\u4e4b\u4e00\uff0c\u5b83\u57fa\u4e8e\u201c\u6d77\u9f9f\u7ed8\u56fe\u201d\u539f\u7406\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u6307\u4ee4\u63a7\u5236\u753b\u7b14\u7ed8\u5236\u5404\u79cd\u56fe\u5f62\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u4e94\u8fb9\u5f62\uff0c\u5305\u62ec\u4ee3\u7801\u793a\u4f8b\u548c\u64cd\u4f5c\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u8bf7\u786e\u4fdd\u60a8\u7684Python\u73af\u5883\u4e2d\u5df2\u5b89\u88c5Turtle\u5e93\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u56de\u8f66\uff1a\n<pre><code class=\"language-shell\">pip install PythonTurtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u5bfc\u5165\u5e93\u5e76\u8bbe\u7f6e\u753b\u5e03<\/h3>\n<\/p>\n<p><p>\u5728\u7ed8\u56fe\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165Turtle\u5e93\u5e76\u8bbe\u7f6e\u753b\u5e03\u3002\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff0c\u5e76\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7a97\u53e3\u5bf9\u8c61<\/strong><\/h2>\n<p>window = turtle.Screen()<\/p>\n<h2><strong>\u8bbe\u7f6e\u7a97\u53e3\u6807\u9898<\/strong><\/h2>\n<p>window.title(&quot;\u4e94\u8fb9\u5f62\u7ed8\u5236&quot;)<\/p>\n<h2><strong>\u8bbe\u7f6e\u7a97\u53e3\u80cc\u666f\u989c\u8272<\/strong><\/h2>\n<p>window.bgcolor(&quot;white&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u8bbe\u7f6e\u753b\u7b14\u5e76\u7ed8\u5236\u4e94\u8fb9\u5f62<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u753b\u7b14\u7684\u5c5e\u6027\uff0c\u5e76\u4f7f\u7528Turtle\u5e93\u4e2d\u7684\u51fd\u6570\u7ed8\u5236\u4e94\u8fb9\u5f62\u3002\u4e94\u8fb9\u5f62\u6709\u4e94\u6761\u8fb9\uff0c\u6bcf\u6761\u8fb9\u7684\u89d2\u5ea6\u662f360\u5ea6\u9664\u4ee55\uff0c\u537372\u5ea6\u3002\u6211\u4eec\u5c06\u901a\u8fc7\u91cd\u590d\u4e94\u6b21\u524d\u8fdb\u548c\u53f3\u8f6c\u6765\u7ed8\u5236\u4e94\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2aTurtle\u5bf9\u8c61<\/p>\n<p>pen = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6e\u753b\u7b14\u989c\u8272<\/strong><\/h2>\n<p>pen.color(&quot;blue&quot;)<\/p>\n<h2><strong>\u8bbe\u7f6e\u753b\u7b14\u7c97\u7ec6<\/strong><\/h2>\n<p>pen.pensize(2)<\/p>\n<h2><strong>\u8bbe\u7f6e\u753b\u7b14\u901f\u5ea6<\/strong><\/h2>\n<p>pen.speed(3)<\/p>\n<h2><strong>\u7ed8\u5236\u4e94\u8fb9\u5f62<\/strong><\/h2>\n<p>for _ in range(5):<\/p>\n<p>    pen.forward(100)  # \u524d\u8fdb100\u4e2a\u5355\u4f4d\u957f\u5ea6<\/p>\n<p>    pen.right(72)     # \u53f3\u8f6c72\u5ea6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5b8c\u6210\u7ed8\u56fe\u5e76\u5173\u95ed\u7a97\u53e3<\/h3>\n<\/p>\n<p><p>\u7ed8\u5236\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4e00\u4e9b\u4ee3\u7801\u4ee5\u786e\u4fdd\u7a97\u53e3\u5728\u7528\u6237\u5173\u95ed\u4e4b\u524d\u4fdd\u6301\u6253\u5f00\u72b6\u6001\u3002\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u505c\u7559\u7a97\u53e3<\/p>\n<p>window.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u5b8c\u6574\u7684Python\u4ee3\u7801\u793a\u4f8b\uff0c\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u4e94\u8fb9\u5f62\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7a97\u53e3\u5bf9\u8c61<\/strong><\/h2>\n<p>window = turtle.Screen()<\/p>\n<h2><strong>\u8bbe\u7f6e\u7a97\u53e3\u6807\u9898<\/strong><\/h2>\n<p>window.title(&quot;\u4e94\u8fb9\u5f62\u7ed8\u5236&quot;)<\/p>\n<h2><strong>\u8bbe\u7f6e\u7a97\u53e3\u80cc\u666f\u989c\u8272<\/strong><\/h2>\n<p>window.bgcolor(&quot;white&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2aTurtle\u5bf9\u8c61<\/strong><\/h2>\n<p>pen = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6e\u753b\u7b14\u989c\u8272<\/strong><\/h2>\n<p>pen.color(&quot;blue&quot;)<\/p>\n<h2><strong>\u8bbe\u7f6e\u753b\u7b14\u7c97\u7ec6<\/strong><\/h2>\n<p>pen.pensize(2)<\/p>\n<h2><strong>\u8bbe\u7f6e\u753b\u7b14\u901f\u5ea6<\/strong><\/h2>\n<p>pen.speed(3)<\/p>\n<h2><strong>\u7ed8\u5236\u4e94\u8fb9\u5f62<\/strong><\/h2>\n<p>for _ in range(5):<\/p>\n<p>    pen.forward(100)  # \u524d\u8fdb100\u4e2a\u5355\u4f4d\u957f\u5ea6<\/p>\n<p>    pen.right(72)     # \u53f3\u8f6c72\u5ea6<\/p>\n<h2><strong>\u505c\u7559\u7a97\u53e3<\/strong><\/h2>\n<p>window.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u8fd0\u884c\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5c06\u4e0a\u8ff0\u4ee3\u7801\u4fdd\u5b58\u4e3a\u4e00\u4e2aPython\u6587\u4ef6\uff08\u4f8b\u5982\uff1adraw_pentagon.py\uff09\uff0c\u7136\u540e\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">python draw_pentagon.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u60a8\u5c06\u770b\u5230\u4e00\u4e2a\u7ed8\u5236\u4e94\u8fb9\u5f62\u7684\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u4e94\u8fb9\u5f62\u4e0d\u4ec5\u7b80\u5355\u76f4\u89c2\uff0c\u800c\u4e14\u901a\u8fc7\u8c03\u6574\u753b\u7b14\u7684\u5c5e\u6027\u548c\u5faa\u73af\u63a7\u5236\uff0c\u53ef\u4ee5\u7075\u6d3b\u7ed8\u5236\u5404\u79cd\u590d\u6742\u56fe\u5f62\u3002<strong>\u7406\u89e3\u548c\u638c\u63e1Turtle\u5e93\u7684\u57fa\u672c\u7528\u6cd5\uff0c\u5c06\u4e3a\u60a8\u5728Python\u56fe\u5f62\u7f16\u7a0b\u4e2d\u6253\u4e0b\u575a\u5b9e\u7684\u57fa\u7840\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u6269\u5c55\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u4e94\u8fb9\u5f62\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u5176\u4ed6\u56fe\u5f62\u5e93\uff0c\u5982Matplotlib\u6216Pygame\uff0c\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u56fe\u5f62\u7ed8\u5236\u548c\u52a8\u753b\u6548\u679c\u3002\u4e0b\u9762\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0b\u8fd9\u4e24\u4e2a\u5e93\u7684\u7528\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528Matplotlib\u7ed8\u5236\u4e94\u8fb9\u5f62<\/h4>\n<\/p>\n<p><p>Matplotlib\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u9002\u5408\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u548c\u5404\u79cd\u56fe\u5f62\u7ed8\u5236\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528Matplotlib\u7ed8\u5236\u4e94\u8fb9\u5f62\u7684\u793a\u4f8b\u4ee3\u7801\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<h2><strong>\u4e94\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807<\/strong><\/h2>\n<p>angles = np.linspace(0, 2 * np.pi, 6)<\/p>\n<p>x = np.cos(angles)<\/p>\n<p>y = np.sin(angles)<\/p>\n<h2><strong>\u7ed8\u5236\u4e94\u8fb9\u5f62<\/strong><\/h2>\n<p>plt.figure()<\/p>\n<p>plt.plot(x, y, &#39;b-&#39;)<\/p>\n<p>plt.fill(x, y, &#39;lightblue&#39;)<\/p>\n<p>plt.axis(&#39;equal&#39;)<\/p>\n<p>plt.title(&#39;\u4e94\u8fb9\u5f62\u7ed8\u5236&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f7f\u7528Pygame\u7ed8\u5236\u4e94\u8fb9\u5f62<\/h4>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d12D\u6e38\u620f\u7684\u56fe\u5f62\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u5f62\u5904\u7406\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528Pygame\u7ed8\u5236\u4e94\u8fb9\u5f62\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import math<\/p>\n<h2><strong>\u521d\u59cb\u5316Pygame<\/strong><\/h2>\n<p>pygame.init()<\/p>\n<h2><strong>\u8bbe\u7f6e\u7a97\u53e3\u5927\u5c0f\u548c\u6807\u9898<\/strong><\/h2>\n<p>size = (400, 400)<\/p>\n<p>screen = pygame.display.set_mode(size)<\/p>\n<p>pygame.display.set_caption(&quot;\u4e94\u8fb9\u5f62\u7ed8\u5236&quot;)<\/p>\n<h2><strong>\u5b9a\u4e49\u4e94\u8fb9\u5f62\u7684\u9876\u70b9<\/strong><\/h2>\n<p>center = (200, 200)<\/p>\n<p>radius = 100<\/p>\n<p>points = []<\/p>\n<p>for i in range(5):<\/p>\n<p>    angle = math.radians(72 * i - 90)<\/p>\n<p>    x = center[0] + radius * math.cos(angle)<\/p>\n<p>    y = center[1] + radius * math.sin(angle)<\/p>\n<p>    points.append((x, y))<\/p>\n<h2><strong>\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>running = True<\/p>\n<p>while running:<\/p>\n<p>    for event in pygame.event.get():<\/p>\n<p>        if event.type == pygame.QUIT:<\/p>\n<p>            running = False<\/p>\n<p>    # \u586b\u5145\u80cc\u666f\u8272<\/p>\n<p>    screen.fill((255, 255, 255))<\/p>\n<p>    # \u7ed8\u5236\u4e94\u8fb9\u5f62<\/p>\n<p>    pygame.draw.polygon(screen, (0, 0, 255), points, 2)<\/p>\n<p>    # \u66f4\u65b0\u663e\u793a<\/p>\n<p>    pygame.display.flip()<\/p>\n<h2><strong>\u9000\u51faPygame<\/strong><\/h2>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u4e0d\u540c\u7684\u56fe\u5f62\u5e93\u7ed8\u5236\u4e94\u8fb9\u5f62\u3002\u901a\u8fc7\u5b66\u4e60\u8fd9\u4e9b\u5e93\u7684\u57fa\u672c\u7528\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728Python\u4e2d\u5b9e\u73b0\u66f4\u591a\u590d\u6742\u548c\u6709\u8da3\u7684\u56fe\u5f62\u7ed8\u5236\u3002<strong>\u4e0d\u65ad\u5c1d\u8bd5\u548c\u63a2\u7d22\uff0c\u5c06\u5e2e\u52a9\u60a8\u63d0\u9ad8\u7f16\u7a0b\u6280\u80fd\u548c\u521b\u9020\u529b\u3002<\/strong><\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u591a\u8fb9\u5f62\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u4e94\u8fb9\u5f62\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684\u7ed8\u56fe\u5e93\uff0c\u5982Matplotlib\u6216Turtle\uff0c\u7ed8\u5236\u5404\u79cd\u591a\u8fb9\u5f62\u3002\u901a\u8fc7\u8c03\u6574\u9876\u70b9\u7684\u5750\u6807\uff0c\u53ef\u4ee5\u8f7b\u677e\u7ed8\u5236\u5176\u4ed6\u5f62\u72b6\uff0c\u6bd4\u5982\u4e09\u89d2\u5f62\u3001\u56db\u8fb9\u5f62\u3001\u516d\u8fb9\u5f62\u7b49\u3002\u5bf9\u4e8e\u6bcf\u79cd\u5f62\u72b6\uff0c\u60a8\u53ea\u9700\u4fee\u6539\u9876\u70b9\u7684\u6570\u91cf\u548c\u4f4d\u7f6e\u5373\u53ef\u3002<\/p>\n<p><strong>\u5728\u7ed8\u5236\u4e94\u8fb9\u5f62\u65f6\uff0c\u6709\u54ea\u4e9b\u53c2\u6570\u53ef\u4ee5\u8c03\u6574\uff1f<\/strong><br \/>\u5728\u7ed8\u5236\u4e94\u8fb9\u5f62\u65f6\uff0c\u53ef\u4ee5\u8c03\u6574\u4e94\u8fb9\u5f62\u7684\u5927\u5c0f\u3001\u989c\u8272\u548c\u586b\u5145\u6837\u5f0f\u7b49\u53c2\u6570\u3002\u4f7f\u7528Matplotlib\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>linewidth<\/code>\u548c<code>color<\/code>\u53c2\u6570\u6765\u6539\u53d8\u8fb9\u6846\u7684\u7ebf\u5bbd\u548c\u989c\u8272\uff0c\u800c\u4f7f\u7528Turtle\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>fillcolor()<\/code>\u548c<code>begin_fill()<\/code>\u7b49\u65b9\u6cd5\u6765\u586b\u5145\u989c\u8272\u3002<\/p>\n<p><strong>\u7ed8\u5236\u4e94\u8fb9\u5f62\u65f6\uff0c\u5982\u4f55\u786e\u4fdd\u5176\u5bf9\u79f0\u6027\u548c\u5747\u5300\u6027\uff1f<\/strong><br \/>\u786e\u4fdd\u4e94\u8fb9\u5f62\u7684\u5bf9\u79f0\u6027\u548c\u5747\u5300\u6027\u53ef\u4ee5\u901a\u8fc7\u8ba1\u7b97\u6bcf\u4e2a\u9876\u70b9\u7684\u5750\u6807\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u6781\u5750\u6807\u7cfb\u7edf\uff0c\u6839\u636e\u4e94\u8fb9\u5f62\u7684\u4e2d\u5fc3\u70b9\u548c\u534a\u5f84\u8ba1\u7b97\u51fa\u6bcf\u4e2a\u9876\u70b9\u7684x\u548cy\u5750\u6807\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6240\u6709\u8fb9\u7684\u957f\u5ea6\u76f8\u7b49\uff0c\u89d2\u5ea6\u4e5f\u5747\u5300\u5206\u5e03\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u753b\u4e94\u8fb9\u5f62\uff0c\u53ef\u4ee5\u4f7f\u7528Turtle\u56fe\u5f62\u5e93\u3001Matplotlib\u5e93\u3001\u6216\u8005Pygame\u5e93\uff0c\u4e0b\u9762\u6211\u4eec\u5c06\u8be6 [&hellip;]","protected":false},"author":3,"featured_media":1111898,"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\/1111891"}],"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=1111891"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1111891\/revisions"}],"predecessor-version":[{"id":1111901,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1111891\/revisions\/1111901"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1111898"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1111891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1111891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1111891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}