{"id":1166732,"date":"2025-01-15T15:35:41","date_gmt":"2025-01-15T07:35:41","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1166732.html"},"modified":"2025-01-15T15:35:43","modified_gmt":"2025-01-15T07:35:43","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e6%89%93%e5%bc%80turtle%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1166732.html","title":{"rendered":"\u5982\u4f55\u7528python\u6253\u5f00turtle\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25210800\/7c38cc5e-7054-4ab0-ae27-ff4b4a9a25ad.webp\" alt=\"\u5982\u4f55\u7528python\u6253\u5f00turtle\u5e93\" \/><\/p>\n<p><p> <strong>\u8981\u7528Python\u6253\u5f00turtle\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u6b65\uff1a\u5bfc\u5165turtle\u5e93\u3001\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61\u3001\u521b\u5efaturtle\u5bf9\u8c61\u3001\u8bbe\u7f6eturtle\u5c5e\u6027\u3001\u8c03\u7528\u7ed8\u56fe\u547d\u4ee4\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u5bfc\u5165turtle\u5e93<\/strong>\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\uff0c\u4ee5\u4e0b\u662f\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><p>\u8981\u5bfc\u5165turtle\u5e93\uff0c\u53ea\u9700\u5728Python\u811a\u672c\u4e2d\u4f7f\u7528<code>import turtle<\/code>\u547d\u4ee4\u3002turtle\u5e93\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u8fdb\u884c\u989d\u5916\u7684\u5b89\u88c5\u3002\u5bfc\u5165\u5e93\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528\u5404\u79cd\u7ed8\u56fe\u547d\u4ee4\u548c\u529f\u80fd\u6765\u521b\u5efa\u56fe\u5f62\u548c\u56fe\u6848\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5bfc\u5165turtle\u5e93\u5e76\u7ed8\u5236\u4e00\u4e2a\u6b63\u65b9\u5f62\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u6b63\u65b9\u5f62<\/strong><\/h2>\n<p>for _ in range(4):<\/p>\n<p>    t.forward(100)  # \u524d\u8fdb100\u50cf\u7d20<\/p>\n<p>    t.right(90)  # \u53f3\u8f6c90\u5ea6<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u793a\u4f8b\u4ee3\u7801\u6f14\u793a\u4e86\u5982\u4f55\u5bfc\u5165turtle\u5e93\uff0c\u521b\u5efa\u5c4f\u5e55\u548cturtle\u5bf9\u8c61\uff0c\u5e76\u4f7f\u7528turtle\u5bf9\u8c61\u7ed8\u5236\u4e00\u4e2a\u7b80\u5355\u7684\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5bfc\u5165turtle\u5e93<\/h3>\n<\/p>\n<p><p>turtle\u5e93\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002\u53ea\u9700\u5728\u4f60\u7684Python\u811a\u672c\u4e2d\u6dfb\u52a0\u4e00\u884c\u4ee3\u7801\uff0c\u5c31\u53ef\u4ee5\u5bfc\u5165turtle\u5e93\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bfc\u5165\u5e93\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528turtle\u63d0\u4f9b\u7684\u5404\u79cd\u529f\u80fd\u6765\u7ed8\u5236\u56fe\u5f62\u548c\u56fe\u6848\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/h3>\n<\/p>\n<p><p>\u5c4f\u5e55\u5bf9\u8c61\u662fturtle\u7ed8\u56fe\u7684\u753b\u5e03\u3002\u901a\u8fc7\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u7a97\u53e3\u7684\u6807\u9898\u3001\u80cc\u666f\u989c\u8272\u7b49\u5c5e\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)  # \u8bbe\u7f6e\u7a97\u53e3\u6807\u9898<\/p>\n<p>screen.bgcolor(&quot;white&quot;)  # \u8bbe\u7f6e\u80cc\u666f\u989c\u8272<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5c4f\u5e55\u5bf9\u8c61\u63d0\u4f9b\u4e86\u4e00\u4e9b\u65b9\u6cd5\u548c\u5c5e\u6027\uff0c\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u7a97\u53e3\u7684\u5916\u89c2\u548c\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u521b\u5efaturtle\u5bf9\u8c61<\/h3>\n<\/p>\n<p><p>turtle\u5bf9\u8c61\u662fturtle\u5e93\u7684\u6838\u5fc3\uff0c\u901a\u8fc7\u5b83\u53ef\u4ee5\u7ed8\u5236\u5404\u79cd\u56fe\u5f62\u3002\u521b\u5efaturtle\u5bf9\u8c61\u540e\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u5b83\u7684\u5c5e\u6027\uff0c\u4f8b\u5982\u989c\u8272\u3001\u5f62\u72b6\u3001\u901f\u5ea6\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">t = turtle.Turtle()<\/p>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>turtle\u5bf9\u8c61\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u6765\u63a7\u5236turtle\u7684\u79fb\u52a8\u548c\u7ed8\u56fe\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8bbe\u7f6eturtle\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>turtle\u5bf9\u8c61\u7684\u5c5e\u6027\u53ef\u4ee5\u901a\u8fc7\u76f8\u5e94\u7684\u65b9\u6cd5\u8fdb\u884c\u8bbe\u7f6e\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8bbe\u7f6eturtle\u7684\u989c\u8272\u3001\u5f62\u72b6\u3001\u901f\u5ea6\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u5c5e\u6027\u8bbe\u7f6e\u53ef\u4ee5\u4f7f\u7ed8\u56fe\u66f4\u52a0\u7075\u6d3b\u548c\u591a\u6837\u5316\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u8c03\u7528\u7ed8\u56fe\u547d\u4ee4<\/h3>\n<\/p>\n<p><p>turtle\u5bf9\u8c61\u63d0\u4f9b\u4e86\u8bb8\u591a\u7ed8\u56fe\u547d\u4ee4\uff0c\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u5404\u79cd\u56fe\u5f62\u548c\u56fe\u6848\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>forward<\/code>\u547d\u4ee4\u524d\u8fdb\u4e00\u5b9a\u8ddd\u79bb\uff0c\u4f7f\u7528<code>right<\/code>\u547d\u4ee4\u53f3\u8f6c\u4e00\u5b9a\u89d2\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for _ in range(4):<\/p>\n<p>    t.forward(100)  # \u524d\u8fdb100\u50cf\u7d20<\/p>\n<p>    t.right(90)  # \u53f3\u8f6c90\u5ea6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7ec4\u5408\u8fd9\u4e9b\u547d\u4ee4\uff0c\u53ef\u4ee5\u7ed8\u5236\u51fa\u5404\u79cd\u590d\u6742\u7684\u56fe\u5f62\u548c\u56fe\u6848\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u7ed8\u5236\u56fe\u5f62\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u524d\u9762\u7684\u6b65\u9aa4\uff0c\u6211\u4eec\u5df2\u7ecf\u4e86\u89e3\u4e86\u5982\u4f55\u5bfc\u5165turtle\u5e93\u3001\u521b\u5efa\u5c4f\u5e55\u548cturtle\u5bf9\u8c61\uff0c\u5e76\u8bbe\u7f6eturtle\u7684\u5c5e\u6027\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u7ed8\u56fe\u547d\u4ee4\uff0c\u7ed8\u5236\u51fa\u5404\u79cd\u56fe\u5f62\u548c\u56fe\u6848\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u56fe\u5f62\u7684\u7ed8\u5236\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u7ed8\u5236\u6b63\u65b9\u5f62<\/h4>\n<\/p>\n<p><p>\u6b63\u65b9\u5f62\u662f\u6700\u7b80\u5355\u7684\u56fe\u5f62\u4e4b\u4e00\uff0c\u53ef\u4ee5\u901a\u8fc7\u91cd\u590d\u524d\u8fdb\u548c\u53f3\u8f6c\u547d\u4ee4\u6765\u7ed8\u5236\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u6b63\u65b9\u5f62<\/strong><\/h2>\n<p>for _ in range(4):<\/p>\n<p>    t.forward(100)  # \u524d\u8fdb100\u50cf\u7d20<\/p>\n<p>    t.right(90)  # \u53f3\u8f6c90\u5ea6<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7ed8\u5236\u4e09\u89d2\u5f62<\/h4>\n<\/p>\n<p><p>\u4e09\u89d2\u5f62\u7684\u7ed8\u5236\u4e0e\u6b63\u65b9\u5f62\u7c7b\u4f3c\uff0c\u53ea\u9700\u8c03\u6574\u524d\u8fdb\u8ddd\u79bb\u548c\u8f6c\u52a8\u89d2\u5ea6\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;green&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u4e09\u89d2\u5f62<\/strong><\/h2>\n<p>for _ in range(3):<\/p>\n<p>    t.forward(100)  # \u524d\u8fdb100\u50cf\u7d20<\/p>\n<p>    t.right(120)  # \u53f3\u8f6c120\u5ea6<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u7ed8\u5236\u5706\u5f62<\/h4>\n<\/p>\n<p><p>\u5706\u5f62\u7684\u7ed8\u5236\u53ef\u4ee5\u4f7f\u7528<code>turtle.circle<\/code>\u65b9\u6cd5\uff0c\u6307\u5b9a\u534a\u5f84\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;red&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u5706\u5f62<\/strong><\/h2>\n<p>t.circle(50)  # \u7ed8\u5236\u534a\u5f84\u4e3a50\u50cf\u7d20\u7684\u5706<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u7ed8\u5236\u661f\u5f62<\/h4>\n<\/p>\n<p><p>\u661f\u5f62\u7684\u7ed8\u5236\u9700\u8981\u4f7f\u7528\u91cd\u590d\u7684\u524d\u8fdb\u548c\u8f6c\u52a8\u547d\u4ee4\uff0c\u8c03\u6574\u89d2\u5ea6\u4ee5\u5f62\u6210\u661f\u5f62\u56fe\u6848\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;yellow&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u661f\u5f62<\/strong><\/h2>\n<p>for _ in range(5):<\/p>\n<p>    t.forward(100)  # \u524d\u8fdb100\u50cf\u7d20<\/p>\n<p>    t.right(144)  # \u53f3\u8f6c144\u5ea6<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001turtle\u5e93\u7684\u9ad8\u7ea7\u529f\u80fd<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u7ed8\u56fe\u547d\u4ee4\u5916\uff0cturtle\u5e93\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u66f4\u52a0\u590d\u6742\u548c\u7cbe\u7f8e\u7684\u56fe\u6848\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u586b\u5145\u989c\u8272<\/h4>\n<\/p>\n<p><p>turtle\u5e93\u63d0\u4f9b\u4e86\u586b\u5145\u989c\u8272\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u6765\u586b\u5145\u5c01\u95ed\u56fe\u5f62\u7684\u5185\u90e8\u989c\u8272\u3002\u901a\u8fc7<code>turtle.begin_fill<\/code>\u548c<code>turtle.end_fill<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6307\u5b9a\u586b\u5145\u7684\u5f00\u59cb\u548c\u7ed3\u675f\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u586b\u5145\u989c\u8272<\/strong><\/h2>\n<p>t.begin_fill()  # \u5f00\u59cb\u586b\u5145<\/p>\n<p>for _ in range(4):<\/p>\n<p>    t.forward(100)  # \u524d\u8fdb100\u50cf\u7d20<\/p>\n<p>    t.right(90)  # \u53f3\u8f6c90\u5ea6<\/p>\n<p>t.end_fill()  # \u7ed3\u675f\u586b\u5145<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7ed8\u5236\u591a\u8fb9\u5f62<\/h4>\n<\/p>\n<p><p>\u591a\u8fb9\u5f62\u7684\u7ed8\u5236\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u548c\u89d2\u5ea6\u8ba1\u7b97\u6765\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u7ed8\u5236\u4e94\u8fb9\u5f62\u7684\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;purple&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u4e94\u8fb9\u5f62<\/strong><\/h2>\n<p>sides = 5<\/p>\n<p>angle = 360 \/ sides<\/p>\n<p>for _ in range(sides):<\/p>\n<p>    t.forward(100)  # \u524d\u8fdb100\u50cf\u7d20<\/p>\n<p>    t.right(angle)  # \u53f3\u8f6c\u76f8\u5e94\u89d2\u5ea6<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u8bbe\u7f6e\u80cc\u666f\u56fe\u7247<\/h4>\n<\/p>\n<p><p>turtle\u5e93\u8fd8\u652f\u6301\u8bbe\u7f6e\u80cc\u666f\u56fe\u7247\uff0c\u53ef\u4ee5\u901a\u8fc7<code>turtle.bgpic<\/code>\u65b9\u6cd5\u6765\u52a0\u8f7d\u548c\u663e\u793a\u80cc\u666f\u56fe\u7247\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<p>screen.bgpic(&quot;background.gif&quot;)  # \u8bbe\u7f6e\u80cc\u666f\u56fe\u7247<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u7ed8\u5236\u4e00\u4e2a\u6b63\u65b9\u5f62<\/strong><\/h2>\n<p>for _ in range(4):<\/p>\n<p>    t.forward(100)  # \u524d\u8fdb100\u50cf\u7d20<\/p>\n<p>    t.right(90)  # \u53f3\u8f6c90\u5ea6<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6ce8\u610f\uff1a\u80cc\u666f\u56fe\u7247\u9700\u8981\u662fGIF\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001turtle\u5e93\u7684\u4e8b\u4ef6\u5904\u7406<\/h3>\n<\/p>\n<p><p>turtle\u5e93\u8fd8\u652f\u6301\u4e8b\u4ef6\u5904\u7406\uff0c\u53ef\u4ee5\u54cd\u5e94\u7528\u6237\u7684\u8f93\u5165\u548c\u4ea4\u4e92\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u952e\u76d8\u548c\u9f20\u6807\u4e8b\u4ef6\u6765\u63a7\u5236turtle\u7684\u79fb\u52a8\u548c\u7ed8\u56fe\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u952e\u76d8\u4e8b\u4ef6<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7<code>turtle.listen<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u76d1\u542c\u952e\u76d8\u4e8b\u4ef6\uff0c\u5e76\u901a\u8fc7<code>turtle.onkey<\/code>\u65b9\u6cd5\u7ed1\u5b9a\u952e\u76d8\u6309\u952e\u548c\u76f8\u5e94\u7684\u5904\u7406\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u5b9a\u4e49\u5904\u7406\u51fd\u6570<\/strong><\/h2>\n<p>def move_forward():<\/p>\n<p>    t.forward(50)<\/p>\n<p>def turn_left():<\/p>\n<p>    t.left(45)<\/p>\n<p>def turn_right():<\/p>\n<p>    t.right(45)<\/p>\n<h2><strong>\u7ed1\u5b9a\u952e\u76d8\u4e8b\u4ef6<\/strong><\/h2>\n<p>screen.listen()<\/p>\n<p>screen.onkey(move_forward, &quot;Up&quot;)  # \u4e0a\u7bad\u5934\u952e\u524d\u8fdb<\/p>\n<p>screen.onkey(turn_left, &quot;Left&quot;)  # \u5de6\u7bad\u5934\u952e\u5de6\u8f6c<\/p>\n<p>screen.onkey(turn_right, &quot;Right&quot;)  # \u53f3\u7bad\u5934\u952e\u53f3\u8f6c<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u9f20\u6807\u4e8b\u4ef6<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7<code>turtle.onscreenclick<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u76d1\u542c\u9f20\u6807\u70b9\u51fb\u4e8b\u4ef6\uff0c\u5e76\u7ed1\u5b9a\u76f8\u5e94\u7684\u5904\u7406\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u5b9a\u4e49\u5904\u7406\u51fd\u6570<\/strong><\/h2>\n<p>def go_to(x, y):<\/p>\n<p>    t.penup()<\/p>\n<p>    t.goto(x, y)<\/p>\n<p>    t.pendown()<\/p>\n<h2><strong>\u7ed1\u5b9a\u9f20\u6807\u4e8b\u4ef6<\/strong><\/h2>\n<p>screen.onscreenclick(go_to)<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u952e\u76d8\u548c\u9f20\u6807\u4e8b\u4ef6\u5904\u7406\uff0c\u53ef\u4ee5\u4f7fturtle\u7ed8\u56fe\u66f4\u52a0\u4e92\u52a8\u548c\u6709\u8da3\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001turtle\u5e93\u7684\u52a8\u753b\u6548\u679c<\/h3>\n<\/p>\n<p><p>turtle\u5e93\u8fd8\u652f\u6301\u52a8\u753b\u6548\u679c\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236turtle\u7684\u79fb\u52a8\u548c\u7ed8\u56fe\u901f\u5ea6\uff0c\u521b\u5efa\u52a8\u6001\u7684\u56fe\u6848\u548c\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u95ea\u70c1\u6548\u679c<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u63a7\u5236turtle\u7684\u989c\u8272\u548c\u663e\u793a\u65f6\u95f4\uff0c\u53ef\u4ee5\u521b\u5efa\u95ea\u70c1\u6548\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>import time<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(1)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u521b\u5efa\u95ea\u70c1\u6548\u679c<\/strong><\/h2>\n<p>colors = [&quot;red&quot;, &quot;green&quot;, &quot;blue&quot;, &quot;yellow&quot;]<\/p>\n<p>for color in colors:<\/p>\n<p>    t.color(color)<\/p>\n<p>    t.forward(100)<\/p>\n<p>    t.right(90)<\/p>\n<p>    time.sleep(0.5)  # \u6682\u505c0.5\u79d2<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u65cb\u8f6c\u6548\u679c<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u63a7\u5236turtle\u7684\u65cb\u8f6c\u89d2\u5ea6\u548c\u524d\u8fdb\u8ddd\u79bb\uff0c\u53ef\u4ee5\u521b\u5efa\u65cb\u8f6c\u6548\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61<\/strong><\/h2>\n<p>screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Turtle Graphics&quot;)<\/p>\n<h2><strong>\u521b\u5efaturtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6eturtle\u5c5e\u6027<\/strong><\/h2>\n<p>t.speed(10)  # \u8bbe\u7f6e\u7ed8\u5236\u901f\u5ea6\uff0c1\u4e3a\u6700\u6162\uff0c10\u4e3a\u6700\u5feb<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u7ed8\u5236\u989c\u8272<\/p>\n<p>t.shape(&quot;turtle&quot;)  # \u8bbe\u7f6eturtle\u5f62\u72b6<\/p>\n<h2><strong>\u521b\u5efa\u65cb\u8f6c\u6548\u679c<\/strong><\/h2>\n<p>for _ in range(36):<\/p>\n<p>    t.forward(100)<\/p>\n<p>    t.right(170)<\/p>\n<h2><strong>\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\uff0c\u76f4\u5230\u7528\u6237\u70b9\u51fb\u5173\u95ed<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u52a8\u753b\u6548\u679c\uff0c\u53ef\u4ee5\u4f7fturtle\u7ed8\u56fe\u66f4\u52a0\u751f\u52a8\u548c\u6709\u8da3\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>turtle\u5e93\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7b80\u5355\u6613\u7528\u7684\u7ed8\u56fe\u547d\u4ee4\u548c\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u5404\u79cd\u56fe\u5f62\u548c\u56fe\u6848\u3002\u901a\u8fc7\u5bfc\u5165turtle\u5e93\u3001\u521b\u5efa\u5c4f\u5e55\u548cturtle\u5bf9\u8c61\u3001\u8bbe\u7f6eturtle\u5c5e\u6027\u3001\u8c03\u7528\u7ed8\u56fe\u547d\u4ee4\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5404\u79cd\u7ed8\u56fe\u4efb\u52a1\u3002\u6b64\u5916\uff0cturtle\u5e93\u8fd8\u652f\u6301\u586b\u5145\u989c\u8272\u3001\u591a\u8fb9\u5f62\u7ed8\u5236\u3001\u80cc\u666f\u56fe\u7247\u3001\u4e8b\u4ef6\u5904\u7406\u548c\u52a8\u753b\u6548\u679c\uff0c\u4f7f\u7ed8\u56fe\u66f4\u52a0\u4e30\u5bcc\u548c\u591a\u6837\u5316\u3002\u65e0\u8bba\u662f\u5b66\u4e60\u7f16\u7a0b\u3001\u5236\u4f5c\u56fe\u5f62\u4f5c\u54c1\uff0c\u8fd8\u662f\u8fdb\u884c\u8da3\u5473\u7f16\u7a0b\uff0cturtle\u5e93\u90fd\u662f\u4e00\u4e2a\u975e\u5e38\u597d\u7528\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b89\u88c5turtle\u5e93\uff1f<\/strong><br \/>turtle\u5e93\u662fPython\u81ea\u5e26\u7684\u4e00\u4e2a\u56fe\u5f62\u5e93\uff0c\u901a\u5e38\u65e0\u9700\u5355\u72ec\u5b89\u88c5\u3002\u53ea\u9700\u786e\u4fdd\u4f60\u4f7f\u7528\u7684Python\u7248\u672c\u662f\u6807\u51c6\u7684Python\u89e3\u91ca\u5668\u3002\u6253\u5f00Python\u73af\u5883\u540e\uff0c\u76f4\u63a5\u5bfc\u5165turtle\u5e93\u5373\u53ef\u4f7f\u7528\u3002\u5728\u547d\u4ee4\u884c\u6216\u4f60\u7684IDE\u4e2d\u8f93\u5165<code>import turtle<\/code>\uff0c\u5982\u679c\u6ca1\u6709\u9519\u8bef\u63d0\u793a\uff0c\u8bf4\u660e\u5e93\u5df2\u7ecf\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n<p><strong>turtle\u5e93\u7684\u57fa\u672c\u529f\u80fd\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>turtle\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ed8\u56fe\u529f\u80fd\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u547d\u4ee4\u521b\u5efa\u56fe\u5f62\u3002\u4e3b\u8981\u529f\u80fd\u5305\u62ec\u7ed8\u5236\u7ebf\u6761\u3001\u5f62\u72b6\u548c\u989c\u8272\u586b\u5145\uff0c\u63a7\u5236\u753b\u7b14\u7684\u79fb\u52a8\u3001\u65cb\u8f6c\u3001\u989c\u8272\u4ee5\u53ca\u753b\u5e03\u7684\u6e05\u7a7a\u7b49\u3002\u6b64\u5916\uff0cturtle\u5e93\u8fd8\u652f\u6301\u521b\u5efa\u52a8\u753b\u6548\u679c\u548c\u54cd\u5e94\u7528\u6237\u8f93\u5165\uff0c\u9002\u5408\u521d\u5b66\u8005\u8fdb\u884c\u7f16\u7a0b\u7ec3\u4e60\u548c\u56fe\u5f62\u5b66\u4e60\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u8bd5turtle\u7ed8\u56fe\u7a0b\u5e8f\u4e2d\u7684\u9519\u8bef\uff1f<\/strong><br \/>\u8c03\u8bd5turtle\u7a0b\u5e8f\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u9010\u884c\u8fd0\u884c\u4ee3\u7801\u6765\u68c0\u67e5\u6bcf\u4e00\u6b65\u7684\u8f93\u51fa\u7ed3\u679c\u3002\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\u8f93\u51fa\u53d8\u91cf\u503c\uff0c\u786e\u4fdd\u903b\u8f91\u6b63\u786e\u3002\u82e5\u9047\u5230\u7a0b\u5e8f\u672a\u53cd\u5e94\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u68c0\u67e5\u662f\u5426\u5728\u7ed8\u56fe\u547d\u4ee4\u540e\u52a0\u4e0a<code>turtle.done()<\/code>\uff0c\u4ee5\u786e\u4fdd\u7ed8\u56fe\u7a97\u53e3\u80fd\u591f\u6b63\u786e\u663e\u793a\u3002\u6b64\u5916\uff0c\u4f7f\u7528IDE\u7684\u8c03\u8bd5\u529f\u80fd\u53ef\u4ee5\u5e2e\u52a9\u9010\u6b65\u6267\u884c\u4ee3\u7801\uff0c\u8bc6\u522b\u95ee\u9898\u6240\u5728\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u6253\u5f00turtle\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u6b65\uff1a\u5bfc\u5165turtle\u5e93\u3001\u521b\u5efa\u5c4f\u5e55\u5bf9\u8c61\u3001\u521b\u5efaturtle\u5bf9\u8c61\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1166737,"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\/1166732"}],"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=1166732"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1166732\/revisions"}],"predecessor-version":[{"id":1166738,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1166732\/revisions\/1166738"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1166737"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1166732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1166732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1166732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}