{"id":1149577,"date":"2025-01-13T16:51:10","date_gmt":"2025-01-13T08:51:10","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1149577.html"},"modified":"2025-01-13T16:51:12","modified_gmt":"2025-01-13T08:51:12","slug":"%e6%b5%b7%e9%be%9f%e7%bb%98%e5%9b%bepython%e5%a6%82%e4%bd%95%e9%a2%84%e8%a7%88","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1149577.html","title":{"rendered":"\u6d77\u9f9f\u7ed8\u56fepython\u5982\u4f55\u9884\u89c8"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25180240\/34db53dc-92ae-426c-b5e9-8adf496a0197.webp\" alt=\"\u6d77\u9f9f\u7ed8\u56fepython\u5982\u4f55\u9884\u89c8\" \/><\/p>\n<p><p> \u8981\u5728Python\u4e2d\u4f7f\u7528\u6d77\u9f9f\u7ed8\u56fe\u8fdb\u884c\u9884\u89c8\uff0c<strong>\u53ef\u4ee5\u4f7f\u7528turtle\u5e93\u3001\u5728\u4ee3\u7801\u4e2d\u8c03\u7528turtle.done()\u51fd\u6570\u6765\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\u3001\u53ef\u4ee5\u4f7f\u7528\u5c4f\u5e55\u66f4\u65b0\u65b9\u6cd5\u6765\u5237\u65b0\u753b\u5e03<\/strong>\u3002\u5176\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5177\u4f53\u7684\u5b9e\u4f8b\u6765\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>turtle\u5e93\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u7ed8\u56fe\u5e93\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u4f7f\u7528\u6d77\u9f9f\u56fe\u5f62\u7f16\u7a0b\u7684\u65b9\u5f0f\u8fdb\u884c\u5404\u79cd\u56fe\u5f62\u7684\u7ed8\u5236\u3002\u901a\u8fc7\u4f7f\u7528turtle\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u7ed8\u5236\u51fa\u5404\u79cd\u5f62\u72b6\u548c\u56fe\u6848\uff0c\u5e76\u4e14\u53ef\u4ee5\u5b9e\u65f6\u9884\u89c8\u8fd9\u4e9b\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001TURTLE\u5e93\u7684\u5b89\u88c5\u548c\u5bfc\u5165<\/h3>\n<\/p>\n<p><p>\u867d\u7136turtle\u5e93\u662fPython\u5185\u7f6e\u7684\u5e93\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u786e\u4fdd\u5b83\u5df2\u7ecf\u5b89\u88c5\u5e76\u4e14\u53ef\u4ee5\u6b63\u786e\u5bfc\u5165\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6765\u786e\u8ba4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u62a5\u9519\uff0c\u8bf4\u660eturtle\u5e93\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u5e76\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6d77\u9f9f\u7ed8\u56fe\u7684\u57fa\u672c\u7528\u6cd5<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528turtle\u5e93\u8fdb\u884c\u7ed8\u56fe\uff0c\u9996\u5148\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u753b\u5e03\u548c\u4e00\u53ea\u6d77\u9f9f\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u7ed8\u56fe\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u5bfc\u5165turtle\u5e93<\/li>\n<li>\u521b\u5efa\u4e00\u4e2aScreen\u5bf9\u8c61\uff0c\u8868\u793a\u753b\u5e03<\/li>\n<li>\u521b\u5efa\u4e00\u4e2aTurtle\u5bf9\u8c61\uff0c\u8868\u793a\u6d77\u9f9f<\/li>\n<li>\u4f7f\u7528Turtle\u5bf9\u8c61\u7684\u65b9\u6cd5\u8fdb\u884c\u7ed8\u56fe<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u753b\u5e03\u5e76\u7ed8\u5236\u4e00\u4e2a\u7b80\u5355\u7684\u56fe\u5f62\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u753b\u5e03\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6d77\u9f9f\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u753b\u4e00\u4e2a\u6b63\u65b9\u5f62<\/strong><\/h2>\n<p>for _ in range(4):<\/p>\n<p>    t.forward(100)  # \u5411\u524d\u79fb\u52a8100\u50cf\u7d20<\/p>\n<p>    t.right(90)     # \u53f3\u8f6c90\u5ea6<\/p>\n<h2><strong>\u7ed3\u675f\u7ed8\u56fe<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7<code>screen<\/code>\u5bf9\u8c61\u521b\u5efa\u4e86\u4e00\u4e2a\u753b\u5e03\uff0c\u5e76\u901a\u8fc7<code>t<\/code>\u5bf9\u8c61\u521b\u5efa\u4e86\u4e00\u53ea\u6d77\u9f9f\u3002\u7136\u540e\uff0c\u901a\u8fc7\u5faa\u73af\u7ed8\u5236\u4e86\u4e00\u4e2a\u6b63\u65b9\u5f62\uff0c\u5e76\u5728\u7ed8\u5236\u5b8c\u6210\u540e\u8c03\u7528<code>turtle.done()<\/code>\u51fd\u6570\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u4ee5\u4fbf\u6211\u4eec\u53ef\u4ee5\u9884\u89c8\u7ed8\u5236\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5c4f\u5e55\u66f4\u65b0\u65b9\u6cd5\u6765\u5237\u65b0\u753b\u5e03<\/h3>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u590d\u6742\u7684\u7ed8\u56fe\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5b9e\u65f6\u5237\u65b0\u753b\u5e03\u4ee5\u67e5\u770b\u7ed8\u5236\u7684\u8fdb\u5ea6\u3002turtle\u5e93\u63d0\u4f9b\u4e86\u82e5\u5e72\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>turtle.tracer()<\/code>: \u8bbe\u7f6e\u5c4f\u5e55\u5237\u65b0\u9891\u7387<\/li>\n<li><code>turtle.update()<\/code>: \u624b\u52a8\u5237\u65b0\u5c4f\u5e55<\/li>\n<\/ul>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u5b9e\u65f6\u5237\u65b0\u753b\u5e03\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u753b\u5e03\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6d77\u9f9f\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6e\u5c4f\u5e55\u5237\u65b0\u9891\u7387<\/strong><\/h2>\n<p>turtle.tracer(0, 0)<\/p>\n<h2><strong>\u753b\u4e00\u4e2a\u7f51\u683c<\/strong><\/h2>\n<p>for i in range(10):<\/p>\n<p>    for j in range(10):<\/p>\n<p>        t.penup()<\/p>\n<p>        t.goto(i * 20, j * 20)<\/p>\n<p>        t.pendown()<\/p>\n<p>        t.circle(10)<\/p>\n<p>        turtle.update()  # \u624b\u52a8\u5237\u65b0\u5c4f\u5e55<\/p>\n<h2><strong>\u7ed3\u675f\u7ed8\u56fe<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7<code>tracer()<\/code>\u65b9\u6cd5\u8bbe\u7f6e\u4e86\u5c4f\u5e55\u5237\u65b0\u9891\u7387\uff0c\u5e76\u5728\u6bcf\u6b21\u7ed8\u5236\u4e00\u4e2a\u5706\u5708\u540e\u8c03\u7528<code>update()<\/code>\u65b9\u6cd5\u624b\u52a8\u5237\u65b0\u5c4f\u5e55\uff0c\u4ee5\u4fbf\u5b9e\u65f6\u9884\u89c8\u7ed8\u5236\u7684\u8fdb\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u901a\u8fc7\u51fd\u6570\u5c01\u88c5\u7ed8\u56fe\u903b\u8f91<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u4ee3\u7801\u66f4\u52a0\u6a21\u5757\u5316\u548c\u6613\u4e8e\u7ef4\u62a4\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u7ed8\u56fe\u903b\u8f91\u5c01\u88c5\u5230\u51fd\u6570\u4e2d\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u901a\u8fc7\u51fd\u6570\u5c01\u88c5\u7ed8\u56fe\u903b\u8f91\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>def draw_square(t, size):<\/p>\n<p>    for _ in range(4):<\/p>\n<p>        t.forward(size)<\/p>\n<p>        t.right(90)<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    # \u521b\u5efa\u4e00\u4e2a\u753b\u5e03\u5bf9\u8c61<\/p>\n<p>    screen = turtle.Screen()<\/p>\n<p>    screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<p>    # \u521b\u5efa\u4e00\u4e2a\u6d77\u9f9f\u5bf9\u8c61<\/p>\n<p>    t = turtle.Turtle()<\/p>\n<p>    # \u8bbe\u7f6e\u5c4f\u5e55\u5237\u65b0\u9891\u7387<\/p>\n<p>    turtle.tracer(0, 0)<\/p>\n<p>    # \u753b\u591a\u4e2a\u6b63\u65b9\u5f62<\/p>\n<p>    for i in range(5):<\/p>\n<p>        draw_square(t, 50 + i * 20)<\/p>\n<p>        t.penup()<\/p>\n<p>        t.goto(-100 + i * 50, -100 + i * 50)<\/p>\n<p>        t.pendown()<\/p>\n<p>        turtle.update()  # \u624b\u52a8\u5237\u65b0\u5c4f\u5e55<\/p>\n<p>    # \u7ed3\u675f\u7ed8\u56fe<\/p>\n<p>    turtle.done()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a<code>draw_square<\/code>\u51fd\u6570\u7528\u4e8e\u7ed8\u5236\u6b63\u65b9\u5f62\uff0c\u5e76\u5728<code>main<\/code>\u51fd\u6570\u4e2d\u8c03\u7528\u5b83\u6765\u7ed8\u5236\u591a\u4e2a\u6b63\u65b9\u5f62\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u597d\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u7ed8\u56fe\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7ed8\u5236\u590d\u6742\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u7b80\u5355\u7684\u56fe\u5f62\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528turtle\u5e93\u7ed8\u5236\u66f4\u52a0\u590d\u6742\u7684\u56fe\u5f62\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u7ed8\u5236\u4e00\u4e2a\u5206\u5f62\u6811\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>def draw_branch(t, branch_length):<\/p>\n<p>    if branch_length &gt; 5:<\/p>\n<p>        t.forward(branch_length)<\/p>\n<p>        t.right(20)<\/p>\n<p>        draw_branch(t, branch_length - 15)<\/p>\n<p>        t.left(40)<\/p>\n<p>        draw_branch(t, branch_length - 15)<\/p>\n<p>        t.right(20)<\/p>\n<p>        t.backward(branch_length)<\/p>\n<p>def main():<\/p>\n<p>    # \u521b\u5efa\u4e00\u4e2a\u753b\u5e03\u5bf9\u8c61<\/p>\n<p>    screen = turtle.Screen()<\/p>\n<p>    screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<p>    # \u521b\u5efa\u4e00\u4e2a\u6d77\u9f9f\u5bf9\u8c61<\/p>\n<p>    t = turtle.Turtle()<\/p>\n<p>    t.left(90)<\/p>\n<p>    t.penup()<\/p>\n<p>    t.goto(0, -200)<\/p>\n<p>    t.pendown()<\/p>\n<p>    t.color(&quot;green&quot;)<\/p>\n<p>    # \u7ed8\u5236\u5206\u5f62\u6811<\/p>\n<p>    draw_branch(t, 100)<\/p>\n<p>    # \u7ed3\u675f\u7ed8\u56fe<\/p>\n<p>    turtle.done()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u9012\u5f52\u51fd\u6570<code>draw_branch<\/code>\u6765\u7ed8\u5236\u5206\u5f62\u6811\u7684\u5206\u652f\uff0c\u5e76\u5728<code>main<\/code>\u51fd\u6570\u4e2d\u8c03\u7528\u5b83\u6765\u7ed8\u5236\u6574\u4e2a\u5206\u5f62\u6811\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u51fa\u590d\u6742\u4e14\u7f8e\u89c2\u7684\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528turtle\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5728Python\u4e2d\u8fdb\u884c\u6d77\u9f9f\u7ed8\u56fe\uff0c\u5e76\u901a\u8fc7\u8c03\u7528<code>turtle.done()<\/code>\u51fd\u6570\u6765\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u4ece\u800c\u5b9e\u65f6\u9884\u89c8\u7ed8\u5236\u7ed3\u679c\u3002\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5c4f\u5e55\u66f4\u65b0\u65b9\u6cd5\u6765\u5237\u65b0\u753b\u5e03\uff0c\u5b9e\u65f6\u67e5\u770b\u7ed8\u5236\u8fdb\u5ea6\u3002\u901a\u8fc7\u51fd\u6570\u5c01\u88c5\u7ed8\u56fe\u903b\u8f91\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u597d\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u4ee3\u7801\uff0c\u4ece\u800c\u7ed8\u5236\u51fa\u5404\u79cd\u590d\u6742\u7684\u56fe\u5f62\u3002\u603b\u4e4b\uff0cturtle\u5e93\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u7684\u7ed8\u56fe\u5de5\u5177\uff0c\u9002\u5408\u5404\u79cd\u7ed8\u56fe\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u6d77\u9f9f\u7ed8\u56fe\u8fdb\u884c\u5b9e\u65f6\u9884\u89c8\uff1f<\/strong><br \/>\u5728Python\u4e2d\u4f7f\u7528\u6d77\u9f9f\u7ed8\u56fe\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>turtle.done()<\/code>\u51fd\u6570\u6765\u786e\u4fdd\u7ed8\u56fe\u7a97\u53e3\u4fdd\u6301\u5f00\u542f\u72b6\u6001\uff0c\u4ece\u800c\u5b9e\u73b0\u5b9e\u65f6\u9884\u89c8\u3002\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u5728\u7ed8\u5236\u56fe\u5f62\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528<code>turtle.update()<\/code>\u51fd\u6570\u6765\u66f4\u65b0\u56fe\u5f62\u663e\u793a\uff0c\u786e\u4fdd\u6bcf\u4e00\u6b65\u90fd\u80fd\u5728\u7a97\u53e3\u4e2d\u53ca\u65f6\u53cd\u6620\u51fa\u6765\u3002<\/p>\n<p><strong>\u6d77\u9f9f\u7ed8\u56fe\u4e2d\u5982\u4f55\u8c03\u6574\u753b\u5e03\u5927\u5c0f\u4ee5\u9002\u5e94\u9884\u89c8\uff1f<\/strong><br \/>\u8981\u8c03\u6574\u6d77\u9f9f\u7ed8\u56fe\u7684\u753b\u5e03\u5927\u5c0f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>turtle.setup(width, height)<\/code>\u51fd\u6570\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8bbe\u7f6e\u753b\u5e03\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u7ed8\u5236\u7684\u5185\u5bb9\u90fd\u80fd\u5728\u9884\u89c8\u4e2d\u5b8c\u6574\u663e\u793a\u3002\u8bb0\u5f97\u5728\u5f00\u59cb\u7ed8\u5236\u4e4b\u524d\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728\u6d77\u9f9f\u7ed8\u56fe\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684\u80cc\u666f\u989c\u8272\u8fdb\u884c\u9884\u89c8\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff01\u60a8\u53ef\u4ee5\u4f7f\u7528<code>turtle.bgcolor(&quot;\u989c\u8272\u540d\u79f0\u6216RGB\u503c&quot;)<\/code>\u6765\u8bbe\u7f6e\u6d77\u9f9f\u7ed8\u56fe\u7684\u80cc\u666f\u989c\u8272\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8ba9\u60a8\u7684\u56fe\u5f62\u5728\u4e0d\u540c\u7684\u80cc\u666f\u4e0b\u5448\u73b0\u51fa\u4e0d\u540c\u7684\u6548\u679c\uff0c\u4ece\u800c\u63d0\u5347\u53ef\u89c6\u5316\u7684\u7f8e\u89c2\u5ea6\u3002\u9009\u62e9\u9002\u5408\u7684\u80cc\u666f\u989c\u8272\uff0c\u6709\u52a9\u4e8e\u8ba9\u7ed8\u5236\u7684\u56fe\u5f62\u66f4\u52a0\u7a81\u51fa\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u4f7f\u7528\u6d77\u9f9f\u7ed8\u56fe\u8fdb\u884c\u9884\u89c8\uff0c\u53ef\u4ee5\u4f7f\u7528turtle\u5e93\u3001\u5728\u4ee3\u7801\u4e2d\u8c03\u7528turtle.done()\u51fd\u6570\u6765\u4fdd [&hellip;]","protected":false},"author":3,"featured_media":1149584,"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\/1149577"}],"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=1149577"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1149577\/revisions"}],"predecessor-version":[{"id":1149585,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1149577\/revisions\/1149585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1149584"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1149577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1149577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1149577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}