{"id":993989,"date":"2024-12-27T08:51:03","date_gmt":"2024-12-27T00:51:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/993989.html"},"modified":"2024-12-27T08:51:08","modified_gmt":"2024-12-27T00:51:08","slug":"python%e5%a6%82%e4%bd%95%e7%94%bb%e8%89%be%e8%8e%8e","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/993989.html","title":{"rendered":"python\u5982\u4f55\u753b\u827e\u838e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071149\/54c02486-c274-466c-a5ca-dd8c8eaabfde.webp\" alt=\"python\u5982\u4f55\u753b\u827e\u838e\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u7ed8\u5236\u827e\u838e\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u6b65\u9aa4\u548c\u5de5\u5177\uff0c\u5982\u4f7f\u7528turtle\u5e93\u8fdb\u884c\u7b80\u5355\u56fe\u5f62\u7ed8\u5236\u3001\u4f7f\u7528matplotlib\u8fdb\u884c\u590d\u6742\u56fe\u5f62\u7ed8\u5236\u3001\u4f7f\u7528PIL\u8fdb\u884c\u56fe\u50cf\u5904\u7406\u7b49\u3002\u5177\u4f53\u9009\u62e9\u53d6\u51b3\u4e8e\u60a8\u5e0c\u671b\u5b9e\u73b0\u7684\u6548\u679c\u548c\u590d\u6742\u5ea6\u3002<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Turtle\u5e93\u8fdb\u884c\u7b80\u5355\u56fe\u5f62\u7ed8\u5236<\/strong><br \/>Turtle\u5e93\u662fPython\u7684\u4e00\u4e2a\u6807\u51c6\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\u8fdb\u884c\u7b80\u5355\u56fe\u5f62\u7ed8\u5236\u3002\u867d\u7136\u5b83\u4e0d\u9002\u7528\u4e8e\u590d\u6742\u7684\u56fe\u5f62\u7ed8\u5236\uff0c\u4f46\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u7b80\u5355\u7684\u5361\u901a\u5f62\u8c61\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Matplotlib\u8fdb\u884c\u590d\u6742\u56fe\u5f62\u7ed8\u5236<\/strong><br \/>Matplotlib\u662fPython\u4e2d\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\uff0c\u9002\u5408\u7ed8\u5236\u590d\u6742\u7684\u7edf\u8ba1\u56fe\u5f62\u3002\u5982\u679c\u60a8\u60f3\u7ed8\u5236\u827e\u838e\u7684\u5f62\u8c61\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u56fe\u5f62\u5904\u7406\u5e93\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528PIL\u8fdb\u884c\u56fe\u50cf\u5904\u7406<\/strong><br \/>PIL\uff08Pillow\uff09\u662fPython\u7684\u56fe\u50cf\u5904\u7406\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\u3002\u53ef\u4ee5\u7528\u6765\u5bf9\u73b0\u6709\u7684\u827e\u838e\u56fe\u7247\u8fdb\u884c\u5904\u7406\u548c\u7f16\u8f91\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u5728Python\u4e2d\u7ed8\u5236\u827e\u838e\u7684\u5f62\u8c61\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u7b80\u5355\u7684\u827e\u838e\u5f62\u8c61<\/h2>\n<\/p>\n<p><h3>Turtle\u5e93\u7b80\u4ecb<\/h3>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u4e2d\u7684\u4e00\u4e2a\u6807\u51c6\u5e93\uff0c\u4e3b\u8981\u7528\u4e8e\u7ed8\u5236\u7b80\u5355\u7684\u56fe\u5f62\u548c\u5f62\u72b6\u3002\u5b83\u6a21\u62df\u4e86\u4e00\u4e2a\u6d77\u9f9f\u5728\u753b\u5e03\u4e0a\u79fb\u52a8\u7684\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u6d77\u9f9f\u7684\u65b9\u5411\u548c\u6b65\u957f\u6765\u7ed8\u5236\u5404\u79cd\u5f62\u72b6\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528Turtle\u7ed8\u5236\u7b80\u5355\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>\u8981\u7528Turtle\u5e93\u7ed8\u5236\u827e\u838e\u7684\u5f62\u8c61\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5Python\uff0c\u5e76\u786e\u4fddTurtle\u5e93\u53ef\u7528\u3002Turtle\u5e93\u662fPython\u81ea\u5e26\u7684\u5e93\uff0c\u65e0\u9700\u989d\u5916\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u7b80\u5355\u56fe\u5f62\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5bfc\u5165Turtle\u5e93<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u753b\u5e03\u548c\u6d77\u9f9f<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">screen = turtle.Screen()<\/p>\n<p>screen.title(&quot;Elsa Drawing&quot;)<\/p>\n<p>screen.bgcolor(&quot;light blue&quot;)<\/p>\n<p>elsa = turtle.Turtle()<\/p>\n<p>elsa.color(&quot;white&quot;)<\/p>\n<p>elsa.shape(&quot;turtle&quot;)<\/p>\n<p>elsa.speed(10)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ed8\u5236\u7b80\u5355\u5f62\u72b6<\/strong><\/p>\n<\/p>\n<p><p>\u7531\u4e8eTurtle\u5e93\u7684\u9650\u5236\uff0c\u7ed8\u5236\u590d\u6742\u7684\u827e\u838e\u5f62\u8c61\u53ef\u80fd\u6bd4\u8f83\u56f0\u96be\uff0c\u4f46\u53ef\u4ee5\u5c1d\u8bd5\u7ed8\u5236\u96ea\u82b1\u7b49\u7b26\u53f7\u4ee3\u8868\u827e\u838e\u7684\u4e3b\u9898\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def draw_snowflake(size):<\/p>\n<p>    for _ in range(6):<\/p>\n<p>        elsa.forward(size)<\/p>\n<p>        elsa.backward(size)<\/p>\n<p>        elsa.right(60)<\/p>\n<p>for i in range(10):<\/p>\n<p>    draw_snowflake(100)<\/p>\n<p>    elsa.penup()<\/p>\n<p>    elsa.forward(150)<\/p>\n<p>    elsa.pendown()<\/p>\n<p>    elsa.right(36)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ed3\u675f\u7ed8\u5236<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<\/p>\n<p><p>Turtle\u5e93\u9002\u5408\u7528\u6765\u5b9e\u73b0\u7b80\u5355\u7684\u51e0\u4f55\u56fe\u5f62\uff0c\u7ed8\u5236\u590d\u6742\u7684\u5361\u901a\u4eba\u7269\u50cf\u827e\u838e\u9700\u8981\u5bf9\u56fe\u5f62\u8fdb\u884c\u5206\u89e3\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5148\u7ed8\u5236\u827e\u838e\u7684\u5934\u90e8\u8f6e\u5ed3\uff0c\u518d\u9010\u6b65\u7ed8\u5236\u4e94\u5b98\u548c\u5176\u4ed6\u7ec6\u8282\u3002\u7ed3\u5408\u989c\u8272\u586b\u5145\u529f\u80fd\uff0c\u53ef\u4ee5\u5b9e\u73b0\u7b80\u5355\u7684\u5361\u901a\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528Matplotlib\u7ed8\u5236\u590d\u6742\u56fe\u5f62<\/h2>\n<\/p>\n<p><h3>Matplotlib\u7b80\u4ecb<\/h3>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u529f\u80fd\u5f3a\u5927\u76842D\u7ed8\u56fe\u5e93\uff0c\u9002\u7528\u4e8e\u521b\u5efa\u9759\u6001\u3001\u4ea4\u4e92\u5f0f\u548c\u52a8\u753b\u56fe\u5f62\u3002\u867d\u7136\u4e3b\u8981\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u590d\u6742\u7684\u827a\u672f\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528Matplotlib\u7ed8\u5236\u56fe\u5f62<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u548c\u5bfc\u5165Matplotlib<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5Matplotlib\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165\u8be5\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<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u56fe\u5f62\u53c2\u6570<\/strong><\/p>\n<\/p>\n<p><p>Matplotlib\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u5f62\u53c2\u6570\u8bbe\u7f6e\u9009\u9879\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u8fd9\u4e9b\u53c2\u6570\u6765\u7ed8\u5236\u590d\u6742\u7684\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.figure(figsize=(8, 8))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ed8\u5236\u590d\u6742\u56fe\u5f62<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Matplotlib\u7ed8\u5236\u827e\u838e\u7684\u5f62\u8c61\u9700\u8981\u5bf9\u56fe\u5f62\u8fdb\u884c\u5206\u89e3\uff0c\u4f8b\u5982\uff0c\u53ef\u4ee5\u7ed8\u5236\u827e\u838e\u7684\u8f6e\u5ed3\u3001\u4e94\u5b98\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\uff1a\u7ed8\u5236\u4e00\u4e2a\u7b80\u5355\u7684\u5706\u5f62\u4ee3\u8868\u827e\u838e\u7684\u5934\u90e8<\/p>\n<p>circle = plt.Circle((0.5, 0.5), 0.4, color=&#39;lightblue&#39;, fill=True)<\/p>\n<p>plt.gca().add_patch(circle)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.axis(&#39;scaled&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<\/p>\n<p><p>Matplotlib\u7684\u5f3a\u5927\u4e4b\u5904\u5728\u4e8e\u5176\u7075\u6d3b\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002\u867d\u7136\u76f4\u63a5\u7ed8\u5236\u827e\u838e\u7684\u5f62\u8c61\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u5de5\u5177\u548c\u5e93\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7Matplotlib\u7684\u57fa\u672c\u56fe\u5f62\u529f\u80fd\u5b9e\u73b0\u4e00\u4e9b\u590d\u6742\u7684\u8bbe\u8ba1\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528PIL\u8fdb\u884c\u56fe\u50cf\u5904\u7406<\/h2>\n<\/p>\n<p><h3>PIL\u7b80\u4ecb<\/h3>\n<\/p>\n<p><p>PIL\uff08Python Imaging Library\uff09\u662fPython\u4e2d\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u7684\u5e93\uff0cPillow\u662f\u5176\u5206\u652f\u7248\u672c\uff0c\u63d0\u4f9b\u4e86\u56fe\u50cf\u521b\u5efa\u3001\u5904\u7406\u548c\u4fdd\u5b58\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528PIL\u5904\u7406\u56fe\u50cf<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u548c\u5bfc\u5165Pillow<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5Pillow\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pillow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165\u8be5\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u548c\u5904\u7406\u56fe\u50cf<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528PIL\u53ef\u4ee5\u521b\u5efa\u65b0\u7684\u56fe\u50cf\uff0c\u6216\u5bf9\u73b0\u6709\u7684\u827e\u838e\u56fe\u50cf\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a\u767d\u56fe\u50cf<\/p>\n<p>img = Image.new(&#39;RGB&#39;, (500, 500), color=&#39;white&#39;)<\/p>\n<h2><strong>\u521b\u5efa\u7ed8\u5236\u5bf9\u8c61<\/strong><\/h2>\n<p>draw = ImageDraw.Draw(img)<\/p>\n<h2><strong>\u7ed8\u5236\u7b80\u5355\u5f62\u72b6<\/strong><\/h2>\n<p>draw.ellipse((100, 100, 400, 400), fill=&#39;lightblue&#39;, outline=&#39;blue&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fdd\u5b58\u548c\u663e\u793a\u56fe\u50cf<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">img.save(&#39;elsa.png&#39;)<\/p>\n<p>img.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<\/p>\n<p><p>PIL\u5e93\u975e\u5e38\u9002\u5408\u56fe\u50cf\u5904\u7406\u548c\u7f16\u8f91\uff0c\u53ef\u4ee5\u5bf9\u827e\u838e\u7684\u73b0\u6709\u56fe\u50cf\u8fdb\u884c\u8c03\u6574\uff0c\u5982\u6539\u53d8\u989c\u8272\u3001\u88c1\u526a\u3001\u65cb\u8f6c\u7b49\u3002\u540c\u65f6\uff0c\u7ed3\u5408\u5176\u4ed6\u7ed8\u56fe\u5e93\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u56fe\u5f62\u521b\u4f5c\u3002<\/p>\n<\/p>\n<p><h2>\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u5728Python\u4e2d\u7ed8\u5236\u827e\u838e\u7684\u5f62\u8c61\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5177\u4f53\u9009\u62e9\u53d6\u51b3\u4e8e\u6240\u9700\u7684\u590d\u6742\u5ea6\u548c\u6548\u679c\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u56fe\u5f62\uff0c\u53ef\u4ee5\u4f7f\u7528Turtle\u5e93\uff1b\u5bf9\u4e8e\u590d\u6742\u7684\u8bbe\u8ba1\uff0c\u53ef\u4ee5\u7ed3\u5408Matplotlib\u548cPIL\u8fdb\u884c\u5904\u7406\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u5173\u952e\u5728\u4e8e\u5bf9\u56fe\u5f62\u8fdb\u884c\u5408\u7406\u7684\u5206\u89e3\u548c\u8bbe\u8ba1\uff0c\u540c\u65f6\u7ed3\u5408Python\u5f3a\u5927\u7684\u56fe\u5f62\u5904\u7406\u529f\u80fd\uff0c\u5b9e\u73b0\u7406\u60f3\u7684\u7ed8\u5236\u6548\u679c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u827e\u838e\u7684\u56fe\u50cf\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u56fe\u5f62\u5e93\uff0c\u5982Matplotlib\u6216Pygame\uff0c\u6765\u7ed8\u5236\u827e\u838e\u7684\u56fe\u50cf\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u83b7\u53d6\u827e\u838e\u7684\u53c2\u8003\u56fe\u50cf\uff0c\u5e76\u4f7f\u7528\u7ed8\u56fe\u529f\u80fd\u521b\u5efa\u8f6e\u5ed3\u548c\u586b\u5145\u989c\u8272\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9a\u4e49\u5f62\u72b6\u548c\u989c\u8272\u6765\u4f7f\u56fe\u50cf\u751f\u52a8\u3002<\/p>\n<p><strong>\u662f\u5426\u9700\u8981\u5b89\u88c5\u7279\u5b9a\u7684\u5e93\u6765\u7ed8\u5236\u827e\u838e\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u4e3a\u4e86\u5728Python\u4e2d\u7ed8\u5236\u827e\u838e\uff0c\u5efa\u8bae\u5b89\u88c5\u4e00\u4e9b\u56fe\u5f62\u5e93\uff0c\u5982Matplotlib\u3001Pygame\u6216Turtle\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u8f7b\u677e\u5b89\u88c5\u8fd9\u4e9b\u5e93\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>pip install matplotlib<\/code>\u6765\u5b89\u88c5Matplotlib\u3002<\/p>\n<p><strong>\u7ed8\u5236\u827e\u838e\u65f6\uff0c\u6709\u54ea\u4e9b\u7ed8\u56fe\u6280\u5de7\u53ef\u4ee5\u63d0\u9ad8\u6548\u679c\uff1f<\/strong><br \/>\u4e3a\u4e86\u63d0\u9ad8\u7ed8\u5236\u6548\u679c\uff0c\u53ef\u4ee5\u4f7f\u7528\u6e10\u53d8\u8272\u6765\u4e3a\u827e\u838e\u7684\u670d\u88c5\u548c\u5934\u53d1\u589e\u52a0\u5c42\u6b21\u611f\u3002\u540c\u65f6\uff0c\u6ce8\u610f\u5149\u5f71\u6548\u679c\uff0c\u5229\u7528\u9634\u5f71\u548c\u9ad8\u5149\u4f7f\u56fe\u50cf\u66f4\u52a0\u7acb\u4f53\u3002\u8fd8\u53ef\u4ee5\u53c2\u8003\u4e00\u4e9b\u7ed8\u56fe\u6559\u7a0b\uff0c\u5b66\u4e60\u5982\u4f55\u5904\u7406\u7ec6\u8282\u548c\u8272\u5f69\u642d\u914d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u7ed8\u5236\u827e\u838e\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u6b65\u9aa4\u548c\u5de5\u5177\uff0c\u5982\u4f7f\u7528turtle\u5e93\u8fdb\u884c\u7b80\u5355\u56fe\u5f62\u7ed8\u5236\u3001\u4f7f\u7528matplotli [&hellip;]","protected":false},"author":3,"featured_media":994001,"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\/993989"}],"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=993989"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993989\/revisions"}],"predecessor-version":[{"id":994004,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993989\/revisions\/994004"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/994001"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=993989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=993989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=993989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}