{"id":1128308,"date":"2025-01-08T20:19:09","date_gmt":"2025-01-08T12:19:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1128308.html"},"modified":"2025-01-08T20:19:11","modified_gmt":"2025-01-08T12:19:11","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e6%ad%a3%e4%ba%94%e8%be%b9%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1128308.html","title":{"rendered":"\u5982\u4f55\u7528python\u753b\u6b63\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\/25095044\/f22d0c01-443a-4269-8e34-acacf9e561dc.webp\" alt=\"\u5982\u4f55\u7528python\u753b\u6b63\u4e94\u8fb9\u5f62\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62<\/strong><\/p>\n<\/p>\n<p><p><strong>\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Turtle\u5e93\u3001\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528Pygame\u5e93\u3002<\/strong>\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff0c\u91cd\u70b9\u8bb2\u8ff0\u5982\u4f55\u4f7f\u7528Turtle\u5e93\u6765\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Turtle\u5e93\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62<\/h3>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u4e2d\u4e00\u4e2a\u57fa\u672c\u7684\u56fe\u5f62\u7ed8\u5236\u5de5\u5177\uff0c\u975e\u5e38\u9002\u5408\u7ed8\u5236\u7b80\u5355\u7684\u56fe\u5f62\uff0c\u5982\u6b63\u4e94\u8fb9\u5f62\u3002\u5b83\u7684\u4e3b\u8981\u7279\u70b9\u662f\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5Turtle\u5e93<\/h4>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>2. \u5bfc\u5165Turtle\u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7ed8\u5236\u4e4b\u524d\uff0c\u9700\u8981\u5bfc\u5165Turtle\u5e93\u3002\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u521b\u5efaTurtle\u5bf9\u8c61<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2aTurtle\u5bf9\u8c61\u6765\u63a7\u5236\u753b\u7b14\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">t = turtle.Turtle()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u8bbe\u7f6e\u7ed8\u56fe\u53c2\u6570<\/h4>\n<\/p>\n<p><p>\u8bbe\u7f6e\u753b\u7b14\u7684\u901f\u5ea6\u3001\u989c\u8272\u7b49\u53c2\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">t.speed(1)  # \u8bbe\u7f6e\u753b\u7b14\u901f\u5ea6\uff0c\u6570\u503c\u8d8a\u5c0f\uff0c\u901f\u5ea6\u8d8a\u6162<\/p>\n<p>t.color(&quot;blue&quot;)  # \u8bbe\u7f6e\u753b\u7b14\u989c\u8272<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62<\/h4>\n<\/p>\n<p><p>\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u7684\u6838\u5fc3\u6b65\u9aa4\u662f\u8ba1\u7b97\u6bcf\u4e2a\u89d2\u7684\u5ea6\u6570\uff0c\u7136\u540e\u6309\u7167\u987a\u65f6\u9488\u6216\u9006\u65f6\u9488\u7684\u65b9\u5411\u4f9d\u6b21\u7ed8\u5236\u5404\u6761\u8fb9\u3002\u6b63\u4e94\u8fb9\u5f62\u7684\u6bcf\u4e2a\u5185\u89d2\u4e3a108\u5ea6\uff0c\u6bcf\u4e2a\u5916\u89d2\u4e3a72\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for _ in range(5):<\/p>\n<p>    t.forward(100)  # \u5411\u524d\u79fb\u52a8100\u5355\u4f4d\u957f\u5ea6<\/p>\n<p>    t.right(72)  # \u5411\u53f3\u8f6c72\u5ea6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>6. \u7ed3\u675f\u7ed8\u5236<\/h4>\n<\/p>\n<p><p>\u5b8c\u6210\u7ed8\u5236\u540e\uff0c\u53ef\u4ee5\u8c03\u7528<code>turtle.done()<\/code>\u6765\u7ed3\u675f\u7ed8\u5236\u7a97\u53e3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>7. \u5b8c\u6574\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u5c06\u4ee5\u4e0a\u6b65\u9aa4\u6574\u5408\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efaTurtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6e\u753b\u7b14\u901f\u5ea6\u548c\u989c\u8272<\/strong><\/h2>\n<p>t.speed(1)<\/p>\n<p>t.color(&quot;blue&quot;)<\/p>\n<h2><strong>\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62<\/strong><\/h2>\n<p>for _ in range(5):<\/p>\n<p>    t.forward(100)<\/p>\n<p>    t.right(72)<\/p>\n<h2><strong>\u7ed3\u675f\u7ed8\u5236<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001Matplotlib\u5e93\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62<\/h3>\n<\/p>\n<p><p>Matplotlib\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u7ed8\u5236\u66f4\u590d\u6742\u7684\u56fe\u5f62\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528Matplotlib\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u7684\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5Matplotlib\u5e93<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5Matplotlib\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\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><h4>2. \u5bfc\u5165Matplotlib\u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7ed8\u5236\u4e4b\u524d\uff0c\u9700\u8981\u5bfc\u5165Matplotlib\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<p><h4>3. \u8ba1\u7b97\u4e94\u8fb9\u5f62\u7684\u9876\u70b9<\/h4>\n<\/p>\n<p><p>\u6b63\u4e94\u8fb9\u5f62\u7684\u9876\u70b9\u53ef\u4ee5\u901a\u8fc7\u6781\u5750\u6807\u8f6c\u6362\u4e3a\u76f4\u89d2\u5750\u6807\u3002\u4ee5\u4e0b\u662f\u8ba1\u7b97\u4e94\u8fb9\u5f62\u9876\u70b9\u7684\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num_sides = 5<\/p>\n<p>radius = 1<\/p>\n<p>angles = np.linspace(0, 2 * np.pi, num_sides, endpoint=False)<\/p>\n<p>points = [(np.cos(angle) * radius, np.sin(angle) * radius) for angle in angles]<\/p>\n<p>points.append(points[0])  # \u95ed\u5408\u591a\u8fb9\u5f62<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u7ed8\u5236\u4e94\u8fb9\u5f62<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Matplotlib\u7684<code>plot<\/code>\u51fd\u6570\u7ed8\u5236\u4e94\u8fb9\u5f62\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x, y = zip(*points)<\/p>\n<p>plt.plot(x, y, &#39;b-&#39;)<\/p>\n<p>plt.axis(&#39;equal&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u5b8c\u6574\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u5c06\u4ee5\u4e0a\u6b65\u9aa4\u6574\u5408\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\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>\u8ba1\u7b97\u4e94\u8fb9\u5f62\u9876\u70b9<\/strong><\/h2>\n<p>num_sides = 5<\/p>\n<p>radius = 1<\/p>\n<p>angles = np.linspace(0, 2 * np.pi, num_sides, endpoint=False)<\/p>\n<p>points = [(np.cos(angle) * radius, np.sin(angle) * radius) for angle in angles]<\/p>\n<p>points.append(points[0])  # \u95ed\u5408\u591a\u8fb9\u5f62<\/p>\n<h2><strong>\u7ed8\u5236\u4e94\u8fb9\u5f62<\/strong><\/h2>\n<p>x, y = zip(*points)<\/p>\n<p>plt.plot(x, y, &#39;b-&#39;)<\/p>\n<p>plt.axis(&#39;equal&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001Pygame\u5e93\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62<\/h3>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d12D\u6e38\u620f\u7684Python\u5e93\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5Pygame\u5e93<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5Pygame\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pygame<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5bfc\u5165Pygame\u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7ed8\u5236\u4e4b\u524d\uff0c\u9700\u8981\u5bfc\u5165Pygame\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import math<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u521d\u59cb\u5316Pygame<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7ed8\u5236\u4e4b\u524d\uff0c\u9700\u8981\u521d\u59cb\u5316Pygame\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pygame.init()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u8bbe\u7f6e\u7ed8\u56fe\u53c2\u6570<\/h4>\n<\/p>\n<p><p>\u8bbe\u7f6e\u7a97\u53e3\u5927\u5c0f\u3001\u989c\u8272\u7b49\u53c2\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">size = (400, 400)<\/p>\n<p>screen = pygame.display.set_mode(size)<\/p>\n<p>pygame.display.set_caption(&quot;Draw Pentagon&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u8ba1\u7b97\u4e94\u8fb9\u5f62\u7684\u9876\u70b9<\/h4>\n<\/p>\n<p><p>\u8ba1\u7b97\u4e94\u8fb9\u5f62\u9876\u70b9\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num_sides = 5<\/p>\n<p>radius = 100<\/p>\n<p>center = (200, 200)<\/p>\n<p>angles = [2 * math.pi * i \/ num_sides for i in range(num_sides)]<\/p>\n<p>points = [(center[0] + math.cos(angle) * radius, center[1] + math.sin(angle) * radius) for angle in angles]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>6. \u7ed8\u5236\u4e94\u8fb9\u5f62<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Pygame\u7684<code>draw.polygon<\/code>\u51fd\u6570\u7ed8\u5236\u4e94\u8fb9\u5f62\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">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>    screen.fill((255, 255, 255))<\/p>\n<p>    pygame.draw.polygon(screen, (0, 0, 255), points)<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>7. \u5b8c\u6574\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u5c06\u4ee5\u4e0a\u6b65\u9aa4\u6574\u5408\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\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<\/strong><\/h2>\n<p>size = (400, 400)<\/p>\n<p>screen = pygame.display.set_mode(size)<\/p>\n<p>pygame.display.set_caption(&quot;Draw Pentagon&quot;)<\/p>\n<h2><strong>\u8ba1\u7b97\u4e94\u8fb9\u5f62\u9876\u70b9<\/strong><\/h2>\n<p>num_sides = 5<\/p>\n<p>radius = 100<\/p>\n<p>center = (200, 200)<\/p>\n<p>angles = [2 * math.pi * i \/ num_sides for i in range(num_sides)]<\/p>\n<p>points = [(center[0] + math.cos(angle) * radius, center[1] + math.sin(angle) * radius) for angle in angles]<\/p>\n<h2><strong>\u7ed8\u5236\u4e94\u8fb9\u5f62<\/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>    screen.fill((255, 255, 255))<\/p>\n<p>    pygame.draw.polygon(screen, (0, 0, 255), points)<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ecb\u7ecd\u4e86\u4e09\u79cd\u4f7f\u7528Python\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u7684\u65b9\u6cd5\uff0c\u5206\u522b\u662f\u4f7f\u7528Turtle\u5e93\u3001Matplotlib\u5e93\u548cPygame\u5e93\u3002<strong>Turtle\u5e93\u9002\u5408\u521d\u5b66\u8005\uff0c\u7b80\u5355\u6613\u7528\uff1bMatplotlib\u5e93\u529f\u80fd\u5f3a\u5927\uff0c\u9002\u5408\u7ed8\u5236\u590d\u6742\u56fe\u5f62\uff1bPygame\u5e93\u9002\u5408\u5f00\u53d12D\u6e38\u620f\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u7528\u4e8e\u7ed8\u5236\u56fe\u5f62\u3002<\/strong>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u5e94\u7528\u573a\u666f\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u5728Python\u7ed8\u56fe\u4e2d\u53d6\u5f97\u6210\u529f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u7528Python\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u7684\u57fa\u672c\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u8981\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Python\u7684\u56fe\u5f62\u5e93\uff0c\u5982Matplotlib\u6216Turtle\u3002\u4f7f\u7528Matplotlib\u65f6\uff0c\u60a8\u9700\u8981\u8ba1\u7b97\u4e94\u8fb9\u5f62\u7684\u4e94\u4e2a\u9876\u70b9\u5750\u6807\uff0c\u7136\u540e\u4f7f\u7528plot\u51fd\u6570\u8fde\u63a5\u8fd9\u4e9b\u70b9\u3002\u4f7f\u7528Turtle\u65f6\uff0c\u53ef\u4ee5\u5229\u7528Turtle\u7684\u5185\u7f6e\u529f\u80fd\u6765\u8bbe\u7f6e\u89d2\u5ea6\u548c\u8fb9\u957f\uff0c\u4fbf\u6377\u5730\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9bPython\u5e93\u6765\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\uff1f<\/strong><br \/>\u5e38\u7528\u7684Python\u5e93\u5305\u62ecMatplotlib\u3001Turtle\u548cPygame\u3002Matplotlib\u9002\u5408\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u53ef\u89c6\u5316\uff0c\u800cTurtle\u5219\u66f4\u9002\u5408\u6559\u80b2\u548c\u7b80\u5355\u56fe\u5f62\u7ed8\u5236\u3002Pygame\u5219\u9002\u5408\u521b\u5efa\u66f4\u590d\u6742\u7684\u56fe\u5f62\u548c\u6e38\u620f\u9879\u76ee\u3002<\/p>\n<p><strong>\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u65f6\uff0c\u5982\u4f55\u786e\u4fdd\u4e94\u8fb9\u5f62\u7684\u5bf9\u79f0\u6027\u548c\u5747\u5300\u6027\uff1f<\/strong><br \/>\u786e\u4fdd\u5bf9\u79f0\u6027\u548c\u5747\u5300\u6027\u4e3b\u8981\u4f9d\u8d56\u4e8e\u6b63\u786e\u7684\u6570\u5b66\u8ba1\u7b97\u548c\u89d2\u5ea6\u8bbe\u7f6e\u3002\u6b63\u4e94\u8fb9\u5f62\u7684\u5185\u89d2\u4e3a108\u5ea6\uff0c\u901a\u8fc7\u5c06\u521d\u59cb\u89d2\u5ea6\u8bbe\u4e3a0\u5ea6\u5e76\u4ee572\u5ea6\u7684\u589e\u91cf\u7ed8\u5236\u6bcf\u4e00\u6761\u8fb9\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u4e94\u8fb9\u5f62\u7684\u5747\u5300\u6027\u3002\u6b64\u5916\uff0c\u5229\u7528\u534a\u5f84\u548c\u6781\u5750\u6807\u8f6c\u6362\u53ef\u4ee5\u786e\u4fdd\u6bcf\u4e2a\u9876\u70b9\u90fd\u5728\u540c\u4e00\u5706\u5468\u4e0a\uff0c\u4ece\u800c\u4fdd\u6301\u6b63\u4e94\u8fb9\u5f62\u7684\u5bf9\u79f0\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62 \u7ed8\u5236\u6b63\u4e94\u8fb9\u5f62\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Turtle\u5e93\u3001\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528Py [&hellip;]","protected":false},"author":3,"featured_media":1128313,"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\/1128308"}],"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=1128308"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128308\/revisions"}],"predecessor-version":[{"id":1128314,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128308\/revisions\/1128314"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1128313"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1128308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1128308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1128308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}