{"id":1084316,"date":"2025-01-08T13:06:09","date_gmt":"2025-01-08T05:06:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1084316.html"},"modified":"2025-01-08T13:06:11","modified_gmt":"2025-01-08T05:06:11","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e6%ad%a3%e4%b9%9d%e8%be%b9%e5%bd%a2-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1084316.html","title":{"rendered":"\u5982\u4f55\u7528python\u753b\u6b63\u4e5d\u8fb9\u5f62"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194729\/e47b3c99-c39b-4c4e-b41f-054148b8d7ff.webp\" alt=\"\u5982\u4f55\u7528python\u753b\u6b63\u4e5d\u8fb9\u5f62\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u7528Python\u753b\u6b63\u4e5d\u8fb9\u5f62<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528Python\u753b\u6b63\u4e5d\u8fb9\u5f62\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4f8b\u5982\uff1a\u4f7f\u7528Turtle\u5e93\u3001\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528Pygame\u5e93<\/strong>\u3002\u5176\u4e2d\uff0c<strong>Turtle\u5e93\u662f\u6700\u7b80\u5355\u548c\u76f4\u89c2\u7684\u9009\u62e9<\/strong>\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Turtle\u5e93\u6765\u753b\u4e00\u4e2a\u6b63\u4e5d\u8fb9\u5f62\uff0c\u5e76\u4e14\u8fd8\u4f1a\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Matplotlib\u5e93\u6765\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Turtle\u5e93\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62<\/h3>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u4e14\u6709\u8da3\u7684\u7ed8\u56fe\u5de5\u5177\u3002\u5b83\u88ab\u8bbe\u8ba1\u7528\u4e8e\u521d\u5b66\u8005\u5b66\u4e60\u7f16\u7a0b\u548c\u7ed8\u56fe\u3002\u901a\u8fc7\u7b80\u5355\u7684\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u63a7\u5236\u201c\u6d77\u9f9f\u201d\u5728\u5c4f\u5e55\u4e0a\u7ed8\u5236\u5404\u79cd\u5f62\u72b6\u548c\u56fe\u6848\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Turtle\u5e93<\/h4>\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\u4f60\u53ea\u9700\u8981\u786e\u4fdd\u4f60\u7684Python\u73af\u5883\u5df2\u7ecf\u5b89\u88c5\u4e86Python3\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u7684\u6b65\u9aa4<\/h4>\n<\/p>\n<ol>\n<li>\u5bfc\u5165Turtle\u5e93\u3002<\/li>\n<li>\u8bbe\u7f6e\u7ed8\u56fe\u7a97\u53e3\u3002<\/li>\n<li>\u521d\u59cb\u5316Turtle\u5bf9\u8c61\u3002<\/li>\n<li>\u4f7f\u7528\u5faa\u73af\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u3002<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u8bbe\u7f6e\u7ed8\u56fe\u7a97\u53e3<\/strong><\/h2>\n<p>window = turtle.Screen()<\/p>\n<p>window.title(&quot;\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62&quot;)<\/p>\n<p>window.bgcolor(&quot;white&quot;)<\/p>\n<h2><strong>\u521d\u59cb\u5316Turtle\u5bf9\u8c61<\/strong><\/h2>\n<p>pen = turtle.Turtle()<\/p>\n<p>pen.color(&quot;blue&quot;)<\/p>\n<p>pen.pensize(2)<\/p>\n<p>pen.speed(1)<\/p>\n<h2><strong>\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62<\/strong><\/h2>\n<p>sides = 9<\/p>\n<p>angle = 360 \/ sides<\/p>\n<p>length = 100<\/p>\n<p>for _ in range(sides):<\/p>\n<p>    pen.forward(length)<\/p>\n<p>    pen.right(angle)<\/p>\n<h2><strong>\u5b8c\u6210\u7ed8\u56fe<\/strong><\/h2>\n<p>pen.hideturtle()<\/p>\n<p>window.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86Turtle\u5e93\uff0c\u5e76\u8bbe\u7f6e\u4e86\u7ed8\u56fe\u7a97\u53e3\u7684\u6807\u9898\u548c\u80cc\u666f\u989c\u8272\u3002\u7136\u540e\uff0c\u6211\u4eec\u521d\u59cb\u5316\u4e86\u4e00\u4e2aTurtle\u5bf9\u8c61\uff0c\u5e76\u8bbe\u7f6e\u4e86\u7b14\u7684\u989c\u8272\u3001\u7c97\u7ec6\u548c\u7ed8\u5236\u901f\u5ea6\u3002\u63a5\u7740\uff0c\u6211\u4eec\u4f7f\u7528\u4e00\u4e2a\u5faa\u73af\u6765\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\uff0c\u6bcf\u6b21\u5411\u524d\u79fb\u52a8\u4e00\u5b9a\u7684\u8ddd\u79bb\uff0c\u5e76\u53f3\u8f6c\u4e00\u5b9a\u7684\u89d2\u5ea6\u3002\u6700\u540e\uff0c\u6211\u4eec\u9690\u85cf\u4e86Turtle\u5bf9\u8c61\uff0c\u5e76\u4fdd\u6301\u7a97\u53e3\u6253\u5f00\u4ee5\u663e\u793a\u7ed8\u5236\u7684\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001Matplotlib\u5e93\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62<\/h3>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u901a\u5e38\u7528\u4e8e\u521b\u5efa\u5404\u79cd\u56fe\u8868\u548c\u590d\u6742\u7684\u53ef\u89c6\u5316\u3002\u5728\u7ed8\u5236\u51e0\u4f55\u56fe\u5f62\u65f6\uff0cMatplotlib\u540c\u6837\u4e5f\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Matplotlib\u5e93<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7684Python\u73af\u5883\u4e2d\u8fd8\u6ca1\u6709\u5b89\u88c5Matplotlib\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u7684\u6b65\u9aa4<\/h4>\n<\/p>\n<ol>\n<li>\u5bfc\u5165Matplotlib\u5e93\u3002<\/li>\n<li>\u8ba1\u7b97\u6b63\u4e5d\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807\u3002<\/li>\n<li>\u4f7f\u7528Matplotlib\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u3002<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\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\u6b63\u4e5d\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807<\/strong><\/h2>\n<p>sides = 9<\/p>\n<p>theta = np.linspace(0, 2 * np.pi, sides + 1)<\/p>\n<p>x = np.cos(theta)<\/p>\n<p>y = np.sin(theta)<\/p>\n<h2><strong>\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62<\/strong><\/h2>\n<p>plt.figure()<\/p>\n<p>plt.plot(x, y, &#39;bo-&#39;)<\/p>\n<p>plt.fill(x, y, &#39;lightblue&#39;)<\/p>\n<p>plt.gca().set_aspect(&#39;equal&#39;)<\/p>\n<p>plt.title(&quot;\u6b63\u4e5d\u8fb9\u5f62&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86Matplotlib\u5e93\u548cNumpy\u5e93\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528Numpy\u5e93\u8ba1\u7b97\u6b63\u4e5d\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807\u3002\u63a5\u7740\uff0c\u6211\u4eec\u4f7f\u7528Matplotlib\u5e93\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\uff0c\u5e76\u8bbe\u7f6e\u4e86\u56fe\u5f62\u7684\u6807\u9898\u548c\u5750\u6807\u8f74\u6bd4\u4f8b\u3002\u6700\u540e\uff0c\u6211\u4eec\u663e\u793a\u7ed8\u5236\u7684\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001Pygame\u5e93\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62<\/h3>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684Python\u6a21\u5757\uff0c\u4e13\u95e8\u7528\u4e8e\u89c6\u9891\u6e38\u620f\u7684\u5f00\u53d1\u3002\u5b83\u5305\u62ec\u8ba1\u7b97\u673a\u56fe\u5f62\u548c\u58f0\u97f3\u5e93\u3002\u867d\u7136Pygame\u4e3b\u8981\u7528\u4e8e\u6e38\u620f\u5f00\u53d1\uff0c\u4f46\u5b83\u540c\u6837\u53ef\u4ee5\u7528\u4e8e\u7ed8\u5236\u51e0\u4f55\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Pygame\u5e93<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7684Python\u73af\u5883\u4e2d\u8fd8\u6ca1\u6709\u5b89\u88c5Pygame\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install pygame<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u7684\u6b65\u9aa4<\/h4>\n<\/p>\n<ol>\n<li>\u5bfc\u5165Pygame\u5e93\u3002<\/li>\n<li>\u521d\u59cb\u5316Pygame\u7a97\u53e3\u3002<\/li>\n<li>\u8ba1\u7b97\u6b63\u4e5d\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807\u3002<\/li>\n<li>\u4f7f\u7528Pygame\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u3002<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\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\u548c\u6807\u9898<\/strong><\/h2>\n<p>size = (800, 600)<\/p>\n<p>screen = pygame.display.set_mode(size)<\/p>\n<p>pygame.display.set_caption(&quot;\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62&quot;)<\/p>\n<h2><strong>\u5b9a\u4e49\u989c\u8272<\/strong><\/h2>\n<p>WHITE = (255, 255, 255)<\/p>\n<p>BLUE = (0, 0, 255)<\/p>\n<h2><strong>\u8ba1\u7b97\u6b63\u4e5d\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807<\/strong><\/h2>\n<p>sides = 9<\/p>\n<p>radius = 100<\/p>\n<p>center = (400, 300)<\/p>\n<p>points = []<\/p>\n<p>for i in range(sides):<\/p>\n<p>    angle = 2 * math.pi * i \/ sides<\/p>\n<p>    x = center[0] + radius * math.cos(angle)<\/p>\n<p>    y = center[1] + radius * math.sin(angle)<\/p>\n<p>    points.append((x, y))<\/p>\n<h2><strong>\u4e3b\u5faa\u73af<\/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>    # \u586b\u5145\u80cc\u666f\u8272<\/p>\n<p>    screen.fill(WHITE)<\/p>\n<p>    # \u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62<\/p>\n<p>    pygame.draw.polygon(screen, BLUE, points, 2)<\/p>\n<p>    # \u66f4\u65b0\u663e\u793a<\/p>\n<p>    pygame.display.flip()<\/p>\n<h2><strong>\u9000\u51faPygame<\/strong><\/h2>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86Pygame\u5e93\u548cMath\u5e93\u3002\u7136\u540e\uff0c\u6211\u4eec\u521d\u59cb\u5316\u4e86Pygame\u7a97\u53e3\uff0c\u5e76\u8bbe\u7f6e\u4e86\u7a97\u53e3\u7684\u5927\u5c0f\u548c\u6807\u9898\u3002\u63a5\u7740\uff0c\u6211\u4eec\u8ba1\u7b97\u4e86\u6b63\u4e5d\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807\uff0c\u5e76\u5c06\u5176\u4fdd\u5b58\u5728\u4e00\u4e2a\u5217\u8868\u4e2d\u3002\u5728\u4e3b\u5faa\u73af\u4e2d\uff0c\u6211\u4eec\u5904\u7406\u4e86\u9000\u51fa\u4e8b\u4ef6\uff0c\u5e76\u586b\u5145\u4e86\u80cc\u666f\u989c\u8272\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528Pygame\u7684<code>pygame.draw.polygon<\/code>\u51fd\u6570\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\uff0c\u5e76\u66f4\u65b0\u663e\u793a\u3002\u6700\u540e\uff0c\u6211\u4eec\u9000\u51fa\u4e86Pygame\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u5b66\u4e60\u4e86\u5982\u4f55\u4f7f\u7528Python\u7684Turtle\u5e93\u3001Matplotlib\u5e93\u548cPygame\u5e93\u6765\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u3002<strong>Turtle\u5e93\u662f\u6700\u7b80\u5355\u548c\u76f4\u89c2\u7684\u9009\u62e9\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u5b66\u4e60\u548c\u4f7f\u7528<\/strong>\u3002<strong>Matplotlib\u5e93\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u901a\u5e38\u7528\u4e8e\u521b\u5efa\u5404\u79cd\u56fe\u8868\u548c\u590d\u6742\u7684\u53ef\u89c6\u5316<\/strong>\u3002<strong>Pygame\u5e93\u5219\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u89c6\u9891\u6e38\u620f\u5f00\u53d1\u7684\u8de8\u5e73\u53f0\u6a21\u5757<\/strong>\uff0c\u540c\u6837\u53ef\u4ee5\u7528\u4e8e\u7ed8\u5236\u51e0\u4f55\u56fe\u5f62\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5e2e\u52a9\u4f60\u638c\u63e1\u4f7f\u7528Python\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u7684\u65b9\u6cd5\uff0c\u5e76\u6fc0\u53d1\u4f60\u5bf9Python\u7ed8\u56fe\u7684\u5174\u8da3\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\uff1f<\/strong><br \/>\u8981\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\uff0c\u60a8\u53ef\u4ee5\u5229\u7528Python\u7684\u56fe\u5f62\u5e93\uff0c\u5982Matplotlib\u3002\u901a\u8fc7\u8ba1\u7b97\u6b63\u4e5d\u8fb9\u5f62\u7684\u6bcf\u4e2a\u9876\u70b9\u7684\u5750\u6807\uff0c\u5e76\u4f7f\u7528plot\u51fd\u6570\u8fde\u63a5\u8fd9\u4e9b\u70b9\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b8c\u6210\u7ed8\u5236\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5bfc\u5165\u5e93\u3001\u8ba1\u7b97\u89d2\u5ea6\u548c\u5750\u6807\u3001\u7ed8\u5236\u56fe\u5f62\u5e76\u663e\u793a\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u9700\u8981\u54ea\u4e9b\u5e93\uff1f<\/strong><br \/>\u7ed8\u5236\u6b63\u4e5d\u8fb9\u5f62\u901a\u5e38\u9700\u8981\u4f7f\u7528Matplotlib\u5e93\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pip install matplotlib<\/code>\u6765\u5b89\u88c5\u5b83\u3002\u6b64\u5916\uff0c\u5982\u679c\u60a8\u5e0c\u671b\u8fdb\u884c\u66f4\u9ad8\u7ea7\u7684\u56fe\u5f62\u5904\u7406\uff0cPygame\u6216Turtle\u5e93\u4e5f\u662f\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n<p><strong>\u5982\u4f55\u8ba1\u7b97\u6b63\u4e5d\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807\uff1f<\/strong><br \/>\u6b63\u4e5d\u8fb9\u5f62\u7684\u9876\u70b9\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\uff1a  <\/p>\n<ul>\n<li>\u9876\u70b9\u5750\u6807\u4e3a\uff1a(r * cos(\u03b8), r * sin(\u03b8))\uff0c\u5176\u4e2dr\u4e3a\u534a\u5f84\uff0c\u03b8\u4e3a\u9876\u70b9\u7684\u89d2\u5ea6\u3002\u5bf9\u4e8e\u6b63\u4e5d\u8fb9\u5f62\uff0c\u03b8\u53ef\u4ee5\u901a\u8fc7\u5c06360\u5ea6\u5e73\u5747\u5206\u62109\u4efd\u6765\u8ba1\u7b97\uff0c\u5373\u03b8 = 2\u03c0 * i \/ 9 (i\u4ece0\u52308)\u3002\u8fd9\u6837\u53ef\u4ee5\u5f97\u5230\u6b63\u4e5d\u8fb9\u5f62\u76849\u4e2a\u9876\u70b9\u7684\u5750\u6807\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u7528Python\u753b\u6b63\u4e5d\u8fb9\u5f62 \u4f7f\u7528Python\u753b\u6b63\u4e5d\u8fb9\u5f62\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4f8b\u5982\uff1a\u4f7f\u7528Turtle\u5e93\u3001\u4f7f\u7528Matpl [&hellip;]","protected":false},"author":3,"featured_media":1084319,"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\/1084316"}],"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=1084316"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1084316\/revisions"}],"predecessor-version":[{"id":1084320,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1084316\/revisions\/1084320"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1084319"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1084316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1084316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1084316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}