{"id":1050663,"date":"2024-12-31T14:09:48","date_gmt":"2024-12-31T06:09:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1050663.html"},"modified":"2024-12-31T14:09:51","modified_gmt":"2024-12-31T06:09:51","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%bb%98%e5%88%b6%e5%a5%a5%e8%bf%90%e4%ba%94%e7%8e%af","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1050663.html","title":{"rendered":"\u5982\u4f55\u7528python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/5f2a86b9-c26a-450e-85ca-e1f839709b3f.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u7528Python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528Python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5e38\u89c1\u7684\u6709\uff1a\u4f7f\u7528Turtle\u56fe\u5f62\u5e93\u3001\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528Pygame\u5e93\u7b49\u3002<\/strong> \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Turtle\u56fe\u5f62\u5e93\u6765\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\uff0c\u8fd9\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u76f4\u89c2\u7684\u65b9\u6cd5\u3002Turtle\u56fe\u5f62\u5e93\u662fPython\u4e2d\u4e00\u4e2a\u6d41\u884c\u7684\u7ed8\u56fe\u5de5\u5177\uff0c\u9002\u5408\u521d\u5b66\u8005\u4e86\u89e3\u57fa\u672c\u7684\u56fe\u5f62\u7ed8\u5236\u539f\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Turtle\u56fe\u5f62\u5e93\u6982\u8ff0<\/h3>\n<\/p>\n<p><p>Turtle\u56fe\u5f62\u5e93\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u6807\u51c6\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\u5b66\u4e60\u7f16\u7a0b\u548c\u7ed8\u56fe\u3002\u5b83\u901a\u8fc7\u63a7\u5236\u4e00\u4e2a\u5c0f\u6d77\u9f9f\u5728\u5c4f\u5e55\u4e0a\u79fb\u52a8\u6765\u7ed8\u5236\u56fe\u5f62\uff0c\u4f7f\u7528\u7b80\u5355\u7684\u547d\u4ee4\u5373\u53ef\u5b9e\u73b0\u590d\u6742\u7684\u56fe\u5f62\u7ed8\u5236\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u5b89\u88c5\u4e0e\u5bfc\u5165Turtle\u5e93<\/h4>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u7684\u6807\u51c6\u5e93\uff0c\u65e0\u9700\u5355\u72ec\u5b89\u88c5\uff0c\u53ea\u9700\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165\u5373\u53ef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.2 Turtle\u5e93\u7684\u57fa\u672c\u547d\u4ee4<\/h4>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u56fe\u5f62\u65f6\uff0c\u6211\u4eec\u9700\u8981\u638c\u63e1\u4e00\u4e9b\u57fa\u672c\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>turtle.forward(distance)<\/code>\uff1a\u5411\u524d\u79fb\u52a8\u6307\u5b9a\u8ddd\u79bb<\/li>\n<li><code>turtle.backward(distance)<\/code>\uff1a\u5411\u540e\u79fb\u52a8\u6307\u5b9a\u8ddd\u79bb<\/li>\n<li><code>turtle.right(angle)<\/code>\uff1a\u5411\u53f3\u8f6c\u52a8\u6307\u5b9a\u89d2\u5ea6<\/li>\n<li><code>turtle.left(angle)<\/code>\uff1a\u5411\u5de6\u8f6c\u52a8\u6307\u5b9a\u89d2\u5ea6<\/li>\n<li><code>turtle.penup()<\/code>\uff1a\u62ac\u8d77\u753b\u7b14\uff0c\u79fb\u52a8\u65f6\u4e0d\u7ed8\u5236<\/li>\n<li><code>turtle.pendown()<\/code>\uff1a\u653e\u4e0b\u753b\u7b14\uff0c\u79fb\u52a8\u65f6\u7ed8\u5236<\/li>\n<li><code>turtle.goto(x, y)<\/code>\uff1a\u79fb\u52a8\u5230\u6307\u5b9a\u5750\u6807\u4f4d\u7f6e<\/li>\n<li><code>turtle.circle(radius)<\/code>\uff1a\u7ed8\u5236\u5706\u5f62\uff0c\u6307\u5b9a\u534a\u5f84<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u7ed8\u5236\u5965\u8fd0\u4e94\u73af<\/h3>\n<\/p>\n<p><p>\u5965\u8fd0\u4e94\u73af\u7531\u4e94\u4e2a\u4e0d\u540c\u989c\u8272\u7684\u73af\u7ec4\u6210\uff0c\u73af\u4e4b\u95f4\u6709\u90e8\u5206\u91cd\u53e0\u3002\u4e94\u73af\u7684\u989c\u8272\u5206\u522b\u4e3a\uff1a\u84dd\u3001\u9ed1\u3001\u7ea2\u3001\u9ec4\u3001\u7eff\u3002\u6211\u4eec\u5c06\u4f7f\u7528Turtle\u5e93\u6765\u7ed8\u5236\u8fd9\u4e94\u4e2a\u73af\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u8bbe\u7f6e\u753b\u7b14\u989c\u8272\u548c\u4f4d\u7f6e<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u753b\u7b14\u7684\u989c\u8272\u548c\u521d\u59cb\u4f4d\u7f6e\u3002\u6bcf\u4e2a\u73af\u7684\u989c\u8272\u548c\u4f4d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u84dd\u8272\u73af\uff1a(-110, 0)<\/li>\n<li>\u9ed1\u8272\u73af\uff1a(0, 0)<\/li>\n<li>\u7ea2\u8272\u73af\uff1a(110, 0)<\/li>\n<li>\u9ec4\u8272\u73af\uff1a(-55, -50)<\/li>\n<li>\u7eff\u8272\u73af\uff1a(55, -50)<\/li>\n<\/ul>\n<p><h4>2.2 \u7ed8\u5236\u5355\u4e2a\u73af<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u4e8e\u7ed8\u5236\u4e00\u4e2a\u6307\u5b9a\u989c\u8272\u548c\u4f4d\u7f6e\u7684\u73af\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def draw_ring(color, x, y):<\/p>\n<p>    turtle.penup()<\/p>\n<p>    turtle.goto(x, y)<\/p>\n<p>    turtle.pendown()<\/p>\n<p>    turtle.color(color)<\/p>\n<p>    turtle.circle(50)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.3 \u7ed8\u5236\u6240\u6709\u4e94\u73af<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f7f\u7528\u4e0a\u9762\u7684\u51fd\u6570\u4f9d\u6b21\u7ed8\u5236\u4e94\u4e2a\u73af\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def draw_olympic_rings():<\/p>\n<p>    turtle.speed(3)<\/p>\n<p>    colors = [&#39;blue&#39;, &#39;black&#39;, &#39;red&#39;, &#39;yellow&#39;, &#39;green&#39;]<\/p>\n<p>    positions = [(-110, 0), (0, 0), (110, 0), (-55, -50), (55, -50)]<\/p>\n<p>    for color, position in zip(colors, positions):<\/p>\n<p>        draw_ring(color, position[0], position[1])<\/p>\n<p>    turtle.hideturtle()<\/p>\n<p>    turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4ee3\u7801\u5b9e\u73b0\u4e0e\u8fd0\u884c<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u5c06\u4e0a\u8ff0\u4ee3\u7801\u6574\u5408\u5230\u4e00\u4e2a\u5b8c\u6574\u7684Python\u811a\u672c\u4e2d\uff0c\u5e76\u8fd0\u884c\u5b83\u4ee5\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>def draw_ring(color, x, y):<\/p>\n<p>    turtle.penup()<\/p>\n<p>    turtle.goto(x, y)<\/p>\n<p>    turtle.pendown()<\/p>\n<p>    turtle.color(color)<\/p>\n<p>    turtle.circle(50)<\/p>\n<p>def draw_olympic_rings():<\/p>\n<p>    turtle.speed(3)<\/p>\n<p>    colors = [&#39;blue&#39;, &#39;black&#39;, &#39;red&#39;, &#39;yellow&#39;, &#39;green&#39;]<\/p>\n<p>    positions = [(-110, 0), (0, 0), (110, 0), (-55, -50), (55, -50)]<\/p>\n<p>    for color, position in zip(colors, positions):<\/p>\n<p>        draw_ring(color, position[0], position[1])<\/p>\n<p>    turtle.hideturtle()<\/p>\n<p>    turtle.done()<\/p>\n<p>if __name__ == &quot;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&quot;:<\/p>\n<p>    draw_olympic_rings()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd0\u884c\u4e0a\u8ff0\u4ee3\u7801\u540e\uff0cTurtle\u7a97\u53e3\u5c06\u4f1a\u663e\u793a\u5965\u8fd0\u4e94\u73af\u56fe\u6848\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6269\u5c55\u4e0e\u4f18\u5316<\/h3>\n<\/p>\n<p><h4>4.1 \u52a8\u6001\u8c03\u6574\u73af\u7684\u5927\u5c0f\u548c\u4f4d\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\u8c03\u6574\u73af\u7684\u5927\u5c0f\u548c\u4f4d\u7f6e\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u73af\u7684\u534a\u5f84\u548c\u73af\u4e4b\u95f4\u7684\u95f4\u8ddd\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u7ed8\u5236\u51fd\u6570\uff0c\u5b9e\u73b0\u66f4\u52a0\u7075\u6d3b\u7684\u7ed8\u5236\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def draw_ring(color, x, y, radius):<\/p>\n<p>    turtle.penup()<\/p>\n<p>    turtle.goto(x, y)<\/p>\n<p>    turtle.pendown()<\/p>\n<p>    turtle.color(color)<\/p>\n<p>    turtle.circle(radius)<\/p>\n<p>def draw_olympic_rings(radius=50, spacing=10):<\/p>\n<p>    turtle.speed(3)<\/p>\n<p>    colors = [&#39;blue&#39;, &#39;black&#39;, &#39;red&#39;, &#39;yellow&#39;, &#39;green&#39;]<\/p>\n<p>    positions = [<\/p>\n<p>        (-2 * radius - spacing, 0),<\/p>\n<p>        (0, 0),<\/p>\n<p>        (2 * radius + spacing, 0),<\/p>\n<p>        (-radius - spacing \/ 2, -radius - spacing),<\/p>\n<p>        (radius + spacing \/ 2, -radius - spacing)<\/p>\n<p>    ]<\/p>\n<p>    for color, position in zip(colors, positions):<\/p>\n<p>        draw_ring(color, position[0], position[1], radius)<\/p>\n<p>    turtle.hideturtle()<\/p>\n<p>    turtle.done()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    draw_olympic_rings(radius=60, spacing=20)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2 \u6dfb\u52a0\u66f4\u591a\u56fe\u5f62\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u5728\u5965\u8fd0\u4e94\u73af\u7684\u57fa\u7840\u4e0a\u6dfb\u52a0\u66f4\u591a\u7684\u56fe\u5f62\u5143\u7d20\uff0c\u4f8b\u5982\u80cc\u666f\u3001\u6587\u5b57\u8bf4\u660e\u7b49\u3002\u901a\u8fc7Turtle\u5e93\u7684\u5176\u4ed6\u547d\u4ee4\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u7684\u56fe\u5f62\u7ed8\u5236\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def draw_text(text, x, y, font_size):<\/p>\n<p>    turtle.penup()<\/p>\n<p>    turtle.goto(x, y)<\/p>\n<p>    turtle.pendown()<\/p>\n<p>    turtle.write(text, align=&quot;center&quot;, font=(&quot;Arial&quot;, font_size, &quot;normal&quot;))<\/p>\n<p>def draw_olympic_rings_with_text():<\/p>\n<p>    draw_olympic_rings(radius=60, spacing=20)<\/p>\n<p>    draw_text(&quot;Olympic Rings&quot;, 0, 100, 24)<\/p>\n<p>    draw_text(&quot;Python Turtle Graphics&quot;, 0, 80, 16)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    draw_olympic_rings_with_text()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u5982\u4f55\u4f7f\u7528Python\u7684Turtle\u56fe\u5f62\u5e93\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u3002Turtle\u56fe\u5f62\u5e93\u662f\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u7ed8\u56fe\u5de5\u5177\uff0c\u9002\u5408\u521d\u5b66\u8005\u5b66\u4e60\u7f16\u7a0b\u548c\u56fe\u5f62\u7ed8\u5236\u3002\u6211\u4eec\u4e0d\u4ec5\u53ef\u4ee5\u7ed8\u5236\u7b80\u5355\u7684\u56fe\u5f62\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u6269\u5c55\u548c\u4f18\u5316\u4ee3\u7801\uff0c\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u7684\u56fe\u5f62\u7ed8\u5236\u3002<\/p>\n<\/p>\n<p><p><strong>\u6838\u5fc3\u8981\u70b9\u603b\u7ed3\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>Turtle\u56fe\u5f62\u5e93\u662fPython\u7684\u6807\u51c6\u5e93\uff0c\u65e0\u9700\u5355\u72ec\u5b89\u88c5\u3002<\/strong><\/li>\n<li><strong>\u901a\u8fc7\u5b9a\u4e49\u51fd\u6570\uff0c\u53ef\u4ee5\u7b80\u5316\u91cd\u590d\u7ed8\u5236\u7684\u8fc7\u7a0b\u3002<\/strong><\/li>\n<li><strong>\u53ef\u4ee5\u52a8\u6001\u8c03\u6574\u73af\u7684\u5927\u5c0f\u548c\u4f4d\u7f6e\uff0c\u5b9e\u73b0\u66f4\u52a0\u7075\u6d3b\u7684\u7ed8\u5236\u3002<\/strong><\/li>\n<li><strong>\u901a\u8fc7\u6dfb\u52a0\u66f4\u591a\u56fe\u5f62\u5143\u7d20\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u7684\u56fe\u5f62\u7ed8\u5236\u3002<\/strong><\/li>\n<\/ul>\n<p><p>\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u5b66\u4e60Python\u7ed8\u56fe\u6709\u6240\u5e2e\u52a9\u3002\u5982\u679c\u60a8\u6709\u4efb\u4f55\u95ee\u9898\u6216\u5efa\u8bae\uff0c\u8bf7\u968f\u65f6\u7559\u8a00\u8ba8\u8bba\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u7684\u57fa\u672c\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u8981\u7528Python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Matplotlib\u5e93\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86Matplotlib\u3002\u63a5\u4e0b\u6765\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u811a\u672c\uff0c\u4f7f\u7528<code>plt.Circle()<\/code>\u65b9\u6cd5\u4e3a\u6bcf\u4e2a\u4e94\u73af\u7ed8\u5236\u5706\u5f62\uff0c\u8bbe\u7f6e\u5408\u9002\u7684\u989c\u8272\u5e76\u8c03\u6574\u4f4d\u7f6e\u3002\u6700\u540e\uff0c\u4f7f\u7528<code>plt.show()<\/code>\u663e\u793a\u56fe\u5f62\u3002<\/p>\n<p><strong>\u5728\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u65f6\u5982\u4f55\u9009\u62e9\u989c\u8272\u548c\u4f4d\u7f6e\uff1f<\/strong><br \/>\u5965\u8fd0\u4e94\u73af\u7684\u989c\u8272\u5206\u522b\u4e3a\u84dd\u8272\u3001\u9ec4\u8272\u3001\u9ed1\u8272\u3001\u7eff\u8272\u548c\u7ea2\u8272\u3002\u53ef\u4ee5\u4f7f\u7528Matplotlib\u4e2d\u7684\u989c\u8272\u4ee3\u7801\u6216\u8005\u76f4\u63a5\u4f7f\u7528\u989c\u8272\u540d\u79f0\u3002\u5728\u4f4d\u7f6e\u4e0a\uff0c\u4e94\u73af\u7684\u6392\u5217\u662f\u4e09\u4e2a\u73af\u5728\u4e0a\uff0c\u4e24\u4e2a\u73af\u5728\u4e0b\uff0c\u786e\u4fdd\u5b83\u4eec\u7684\u4e2d\u5fc3\u5bf9\u9f50\u3002\u8c03\u6574\u6bcf\u4e2a\u5706\u7684\u5750\u6807\uff0c\u4f7f\u5b83\u4eec\u5728\u89c6\u89c9\u4e0a\u5448\u73b0\u51fa\u6b63\u786e\u7684\u5f62\u72b6\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\u53ef\u4ee5\u53c2\u8003\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff01\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u7528\u4e8e\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n\n# \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7ed8\u56fe\nfig, ax = plt.subplots()\n\n# \u5b9a\u4e49\u4e94\u73af\u7684\u989c\u8272\u548c\u5750\u6807\ncolors = [&#39;blue&#39;, &#39;yellow&#39;, &#39;black&#39;, &#39;green&#39;, &#39;red&#39;]\npositions = [(1, 1), (2, 1), (3, 1), (1.5, 0.5), (2.5, 0.5)]\n\n# \u7ed8\u5236\u4e94\u73af\nfor i in range(5):\n    circle = plt.Circle(positions[i], 0.5, color=colors[i], fill=False, linewidth=8)\n    ax.add_artist(circle)\n\n# \u8bbe\u7f6e\u5750\u6807\u8f74\u9650\u5236\u548c\u6bd4\u4f8b\nax.set_xlim(0, 4)\nax.set_ylim(0, 2)\nax.set_aspect(&#39;equal&#39;, adjustable=&#39;box&#39;)\n\n# \u663e\u793a\u7ed8\u56fe\nplt.title(&#39;\u5965\u8fd0\u4e94\u73af&#39;)\nplt.show()\n<\/code><\/pre>\n<p>\u6b64\u4ee3\u7801\u5c06\u751f\u6210\u4e00\u4e2a\u7b80\u5355\u7684\u4e94\u73af\u56fe\u5f62\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8fdb\u884c\u8c03\u6574\u548c\u6269\u5c55\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u7528Python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af \u4f7f\u7528Python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5e38\u89c1\u7684\u6709\uff1a\u4f7f\u7528Turtle\u56fe\u5f62\u5e93\u3001\u4f7f [&hellip;]","protected":false},"author":3,"featured_media":1050675,"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\/1050663"}],"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=1050663"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1050663\/revisions"}],"predecessor-version":[{"id":1050677,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1050663\/revisions\/1050677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1050675"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1050663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1050663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1050663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}