{"id":1122607,"date":"2025-01-08T19:22:48","date_gmt":"2025-01-08T11:22:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1122607.html"},"modified":"2025-01-08T19:22:50","modified_gmt":"2025-01-08T11:22:50","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e4%ba%94%e6%98%9f%e7%ba%a2%e6%97%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1122607.html","title":{"rendered":"\u5982\u4f55\u7528python\u753b\u4e94\u661f\u7ea2\u65d7"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084411\/a5268d90-0a97-448a-b66a-262c75b6fb5b.webp\" alt=\"\u5982\u4f55\u7528python\u753b\u4e94\u661f\u7ea2\u65d7\" \/><\/p>\n<p><h2>\u5982\u4f55\u7528Python\u753b\u4e94\u661f\u7ea2\u65d7<\/h2>\n<\/p>\n<p><p><strong>\u8981\u7528Python\u753b\u4e94\u661f\u7ea2\u65d7\uff0c\u53ef\u4ee5\u4f7f\u7528matplotlib\u5e93\u3001turtle\u5e93\u3001PIL\u5e93<\/strong>\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e09\u4e2a\u5e93\u6765\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\uff0c\u5e76\u5bf9\u5176\u4e2d\u7684matplotlib\u5e93\u8fdb\u884c\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<\/p>\n<p><p>\u8981\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\uff0c\u9996\u5148\u9700\u8981\u7406\u89e3\u5176\u8bbe\u8ba1\u89c4\u8303\u3002\u4e94\u661f\u7ea2\u65d7\u7531\u4e00\u4e2a\u5927\u4e94\u89d2\u661f\u548c\u56db\u4e2a\u5c0f\u4e94\u89d2\u661f\u7ec4\u6210\uff0c\u6240\u6709\u661f\u661f\u90fd\u4e3a\u9ec4\u8272\uff0c\u4f4d\u4e8e\u7ea2\u8272\u80cc\u666f\u4e0a\u3002\u5927\u4e94\u89d2\u661f\u4f4d\u4e8e\u65d7\u5e1c\u5de6\u4e0a\u89d2\uff0c\u5c0f\u4e94\u89d2\u661f\u56f4\u7ed5\u5927\u4e94\u89d2\u661f\u5448\u5f27\u5f62\u6392\u5217\u3002\u5927\u4e94\u89d2\u661f\u7684\u4e2d\u5fc3\u8ddd\u79bb\u65d7\u5e1c\u5de6\u8fb9\u548c\u4e0a\u8fb9\u54041\/10\u65d7\u5e1c\u7684\u957f\u5ea6\uff0c\u5c0f\u4e94\u89d2\u661f\u7684\u4e2d\u5fc3\u5206\u522b\u8ddd\u79bb\u65d7\u5e1c\u5de6\u8fb92\/10\u30013\/10\u548c4\/10\u65d7\u5e1c\u7684\u957f\u5ea6\uff0c\u8ddd\u79bb\u65d7\u5e1c\u4e0a\u8fb91\/10\u30012\/10\u548c3\/10\u65d7\u5e1c\u7684\u9ad8\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Matplotlib\u5e93\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7<\/h3>\n<\/p>\n<p><p>matplotlib\u662fPython\u4e2d\u4e00\u4e2a\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u3002\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><h4>1.1\u3001\u5b89\u88c5matplotlib\u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7ed8\u5236\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86matplotlib\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.2\u3001\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528matplotlib\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u5b8c\u6574\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import matplotlib.patches as patches<\/p>\n<p>def draw_star(ax, x, y, size, angle=0):<\/p>\n<p>    star = patches.RegularPolygon((x, y), numVertices=5, radius=size, orientation=angle, color=&#39;yellow&#39;)<\/p>\n<p>    ax.add_patch(star)<\/p>\n<p>def draw_flag():<\/p>\n<p>    fig, ax = plt.subplots()<\/p>\n<p>    # \u7ed8\u5236\u7ea2\u8272\u80cc\u666f<\/p>\n<p>    ax.add_patch(patches.Rectangle((0, 0), 30, 20, color=&#39;red&#39;))<\/p>\n<p>    # \u7ed8\u5236\u5927\u4e94\u89d2\u661f<\/p>\n<p>    draw_star(ax, 5, 15, 3)<\/p>\n<p>    # \u7ed8\u5236\u56db\u4e2a\u5c0f\u4e94\u89d2\u661f<\/p>\n<p>    small_star_coords = [(10, 18), (12, 16), (12, 12), (10, 10)]<\/p>\n<p>    for coord in small_star_coords:<\/p>\n<p>        draw_star(ax, coord[0], coord[1], 1, angle=0.5)<\/p>\n<p>    ax.set_xlim(0, 30)<\/p>\n<p>    ax.set_ylim(0, 20)<\/p>\n<p>    plt.axis(&#39;off&#39;)<\/p>\n<p>    plt.show()<\/p>\n<p>draw_flag()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.3\u3001\u4ee3\u7801\u8be6\u7ec6\u89e3\u91ca<\/h4>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u7ed8\u56fe\u677f<\/strong>\uff1a \u4f7f\u7528<code>fig, ax = plt.subplots()<\/code>\u521b\u5efa\u4e00\u4e2a\u7ed8\u56fe\u677f\u3002<\/li>\n<li><strong>\u7ed8\u5236\u7ea2\u8272\u80cc\u666f<\/strong>\uff1a \u4f7f\u7528<code>ax.add_patch(patches.Rectangle((0, 0), 30, 20, color=&#39;red&#39;))<\/code>\u7ed8\u5236\u7ea2\u8272\u80cc\u666f\u3002<\/li>\n<li><strong>\u7ed8\u5236\u5927\u4e94\u89d2\u661f<\/strong>\uff1a \u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>draw_star<\/code>\uff0c\u4f7f\u7528<code>patches.RegularPolygon<\/code>\u51fd\u6570\u7ed8\u5236\u4e94\u89d2\u661f\uff0c\u5e76\u5c06\u5176\u4f4d\u7f6e\u8bbe\u7f6e\u5728(5, 15)\u3002<\/li>\n<li><strong>\u7ed8\u5236\u56db\u4e2a\u5c0f\u4e94\u89d2\u661f<\/strong>\uff1a \u5b9a\u4e49\u5c0f\u4e94\u89d2\u661f\u7684\u5750\u6807<code>small_star_coords<\/code>\uff0c\u4f7f\u7528\u5faa\u73af\u8c03\u7528<code>draw_star<\/code>\u51fd\u6570\u7ed8\u5236\u5c0f\u4e94\u89d2\u661f\u3002<\/li>\n<li><strong>\u8bbe\u7f6e\u7ed8\u56fe\u8303\u56f4\u548c\u9690\u85cf\u5750\u6807\u8f74<\/strong>\uff1a \u4f7f\u7528<code>ax.set_xlim(0, 30)<\/code>\u548c<code>ax.set_ylim(0, 20)<\/code>\u8bbe\u7f6e\u7ed8\u56fe\u8303\u56f4\uff0c\u4f7f\u7528<code>plt.axis(&#39;off&#39;)<\/code>\u9690\u85cf\u5750\u6807\u8f74\u3002<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7<\/h3>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u4e2d\u7684\u4e00\u4e2a\u6807\u51c6\u5e93\uff0c\u9002\u7528\u4e8e\u7ed8\u5236\u7b80\u5355\u56fe\u5f62\u548c\u52a8\u753b\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>2.1\u3001\u5b89\u88c5Turtle\u5e93<\/h4>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u7684\u6807\u51c6\u5e93\uff0c\u65e0\u9700\u989d\u5916\u5b89\u88c5\uff0c\u53ea\u9700\u8981\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165\u5373\u53ef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.2\u3001\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u5b8c\u6574\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>def draw_star(x, y, length):<\/p>\n<p>    turtle.penup()<\/p>\n<p>    turtle.goto(x, y)<\/p>\n<p>    turtle.pendown()<\/p>\n<p>    turtle.begin_fill()<\/p>\n<p>    for _ in range(5):<\/p>\n<p>        turtle.forward(length)<\/p>\n<p>        turtle.right(144)<\/p>\n<p>    turtle.end_fill()<\/p>\n<p>def draw_flag():<\/p>\n<p>    turtle.speed(0)<\/p>\n<p>    turtle.penup()<\/p>\n<p>    turtle.goto(-150, 100)<\/p>\n<p>    turtle.pendown()<\/p>\n<p>    turtle.color(&#39;red&#39;)<\/p>\n<p>    turtle.begin_fill()<\/p>\n<p>    turtle.forward(300)<\/p>\n<p>    turtle.right(90)<\/p>\n<p>    turtle.forward(200)<\/p>\n<p>    turtle.right(90)<\/p>\n<p>    turtle.forward(300)<\/p>\n<p>    turtle.right(90)<\/p>\n<p>    turtle.forward(200)<\/p>\n<p>    turtle.end_fill()<\/p>\n<p>    turtle.color(&#39;yellow&#39;)<\/p>\n<p>    draw_star(-120, 70, 50)<\/p>\n<p>    small_star_coords = [(-90, 90), (-70, 70), (-70, 40), (-90, 20)]<\/p>\n<p>    for coord in small_star_coords:<\/p>\n<p>        draw_star(coord[0], coord[1], 20)<\/p>\n<p>    turtle.hideturtle()<\/p>\n<p>    turtle.done()<\/p>\n<p>draw_flag()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.3\u3001\u4ee3\u7801\u8be6\u7ec6\u89e3\u91ca<\/h4>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u753b\u5e03<\/strong>\uff1a \u4f7f\u7528<code>turtle.speed(0)<\/code>\u8bbe\u7f6e\u7ed8\u56fe\u901f\u5ea6\u3002<\/li>\n<li><strong>\u7ed8\u5236\u7ea2\u8272\u80cc\u666f<\/strong>\uff1a \u4f7f\u7528<code>turtle.color(&#39;red&#39;)<\/code>\u8bbe\u7f6e\u989c\u8272\u4e3a\u7ea2\u8272\uff0c\u4f7f\u7528<code>turtle.begin_fill()<\/code>\u548c<code>turtle.end_fill()<\/code>\u586b\u5145\u989c\u8272\u3002<\/li>\n<li><strong>\u7ed8\u5236\u5927\u4e94\u89d2\u661f<\/strong>\uff1a \u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>draw_star<\/code>\uff0c\u4f7f\u7528<code>turtle.forward<\/code>\u548c<code>turtle.right<\/code>\u7ed8\u5236\u4e94\u89d2\u661f\uff0c\u5e76\u8bbe\u7f6e\u5176\u4f4d\u7f6e\u5728(-120, 70)\u3002<\/li>\n<li><strong>\u7ed8\u5236\u56db\u4e2a\u5c0f\u4e94\u89d2\u661f<\/strong>\uff1a \u5b9a\u4e49\u5c0f\u4e94\u89d2\u661f\u7684\u5750\u6807<code>small_star_coords<\/code>\uff0c\u4f7f\u7528\u5faa\u73af\u8c03\u7528<code>draw_star<\/code>\u51fd\u6570\u7ed8\u5236\u5c0f\u4e94\u89d2\u661f\u3002<\/li>\n<li><strong>\u9690\u85cf\u753b\u7b14<\/strong>\uff1a \u4f7f\u7528<code>turtle.hideturtle()<\/code>\u9690\u85cf\u753b\u7b14\u3002<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u4f7f\u7528PIL\u5e93\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7<\/h3>\n<\/p>\n<p><p>PIL\uff08Python Imaging Library\uff09\u662fPython\u4e2d\u4e00\u4e2a\u5f3a\u5927\u7684\u56fe\u50cf\u5904\u7406\u5e93\uff0c\u9002\u7528\u4e8e\u5904\u7406\u56fe\u50cf\u6587\u4ef6\u548c\u7ed8\u5236\u590d\u6742\u56fe\u5f62\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528PIL\u5e93\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>3.1\u3001\u5b89\u88c5PIL\u5e93<\/h4>\n<\/p>\n<p><p>PIL\u5e93\u5df2\u7ecf\u88abPillow\u5e93\u6240\u53d6\u4ee3\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Pillow\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install pillow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2\u3001\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528Pillow\u5e93\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u5b8c\u6574\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<p>def draw_star(draw, x, y, size):<\/p>\n<p>    points = []<\/p>\n<p>    for i in range(5):<\/p>\n<p>        angle = i * 144 - 90<\/p>\n<p>        x_point = x + size * cos(radians(angle))<\/p>\n<p>        y_point = y + size * sin(radians(angle))<\/p>\n<p>        points.append((x_point, y_point))<\/p>\n<p>    draw.polygon(points, fill=&#39;yellow&#39;)<\/p>\n<p>def draw_flag():<\/p>\n<p>    width, height = 300, 200<\/p>\n<p>    image = Image.new(&#39;RGB&#39;, (width, height), &#39;red&#39;)<\/p>\n<p>    draw = ImageDraw.Draw(image)<\/p>\n<p>    draw_star(draw, 60, 40, 30)<\/p>\n<p>    small_star_coords = [(120, 20), (140, 40), (140, 80), (120, 100)]<\/p>\n<p>    for coord in small_star_coords:<\/p>\n<p>        draw_star(draw, coord[0], coord[1], 10)<\/p>\n<p>    image.show()<\/p>\n<p>draw_flag()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.3\u3001\u4ee3\u7801\u8be6\u7ec6\u89e3\u91ca<\/h4>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u56fe\u50cf\u5bf9\u8c61<\/strong>\uff1a \u4f7f\u7528<code>Image.new(&#39;RGB&#39;, (width, height), &#39;red&#39;)<\/code>\u521b\u5efa\u4e00\u4e2a\u7ea2\u8272\u80cc\u666f\u7684\u56fe\u50cf\u5bf9\u8c61\u3002<\/li>\n<li><strong>\u7ed8\u5236\u5927\u4e94\u89d2\u661f<\/strong>\uff1a \u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>draw_star<\/code>\uff0c\u4f7f\u7528<code>ImageDraw.Draw.polygon<\/code>\u51fd\u6570\u7ed8\u5236\u4e94\u89d2\u661f\uff0c\u5e76\u8bbe\u7f6e\u5176\u4f4d\u7f6e\u5728(60, 40)\u3002<\/li>\n<li><strong>\u7ed8\u5236\u56db\u4e2a\u5c0f\u4e94\u89d2\u661f<\/strong>\uff1a \u5b9a\u4e49\u5c0f\u4e94\u89d2\u661f\u7684\u5750\u6807<code>small_star_coords<\/code>\uff0c\u4f7f\u7528\u5faa\u73af\u8c03\u7528<code>draw_star<\/code>\u51fd\u6570\u7ed8\u5236\u5c0f\u4e94\u89d2\u661f\u3002<\/li>\n<li><strong>\u663e\u793a\u56fe\u50cf<\/strong>\uff1a \u4f7f\u7528<code>image.show()<\/code>\u663e\u793a\u7ed8\u5236\u597d\u7684\u56fe\u50cf\u3002<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u4e0d\u540c\u7684\u65b9\u6cd5\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\u3002<strong>\u4f7f\u7528matplotlib\u5e93\u3001turtle\u5e93\u3001PIL\u5e93<\/strong>\u90fd\u53ef\u4ee5\u5b9e\u73b0\u4e94\u661f\u7ea2\u65d7\u7684\u7ed8\u5236\uff0c\u5176\u4e2dmatplotlib\u5e93\u9002\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\uff0cturtle\u5e93\u9002\u7528\u4e8e\u7ed8\u5236\u7b80\u5355\u56fe\u5f62\u548c\u52a8\u753b\uff0cPIL\u5e93\u9002\u7528\u4e8e\u5904\u7406\u56fe\u50cf\u6587\u4ef6\u548c\u7ed8\u5236\u590d\u6742\u56fe\u5f62\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u7ed8\u56fe\u5e93\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u5e76\u80fd\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u7075\u6d3b\u8fd0\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u7684\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u53ef\u4ee5\u4f7f\u7528Python\u7684\u56fe\u5f62\u5e93\uff0c\u5982Matplotlib\u6216Turtle\u3002\u9996\u5148\uff0c\u9009\u62e9\u4e00\u4e2a\u5e93\u5e76\u5b89\u88c5\u5b83\u3002\u7136\u540e\uff0c\u8bbe\u7f6e\u753b\u5e03\u80cc\u666f\u4e3a\u7ea2\u8272\uff0c\u63a5\u7740\u4f7f\u7528\u56fe\u5f62\u7ed8\u5236\u5de5\u5177\u7ed8\u5236\u4e94\u9897\u661f\u661f\uff0c\u5206\u522b\u653e\u7f6e\u5728\u9002\u5f53\u7684\u4f4d\u7f6e\u3002\u6700\u540e\uff0c\u8c03\u6574\u661f\u661f\u7684\u5927\u5c0f\u548c\u989c\u8272\uff0c\u786e\u4fdd\u5b83\u4eec\u7684\u5f62\u72b6\u548c\u4f4d\u7f6e\u7b26\u5408\u4e94\u661f\u7ea2\u65d7\u7684\u8bbe\u8ba1\u8981\u6c42\u3002<\/p>\n<p><strong>\u4f7f\u7528\u54ea\u79cdPython\u5e93\u6700\u9002\u5408\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\uff1f<\/strong><br \/>\u5bf9\u4e8e\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\uff0cMatplotlib\u548cTurtle\u90fd\u662f\u4e0d\u9519\u7684\u9009\u62e9\u3002Matplotlib\u9002\u5408\u7528\u4e8e\u521b\u5efa\u9759\u6001\u56fe\u5f62\uff0c\u63d0\u4f9b\u4e30\u5bcc\u7684\u7ed8\u56fe\u529f\u80fd\u3002\u800cTurtle\u5219\u66f4\u9002\u5408\u521d\u5b66\u8005\uff0c\u80fd\u591f\u901a\u8fc7\u7b80\u5355\u7684\u547d\u4ee4\u6765\u63a7\u5236\u753b\u7b14\u7ed8\u56fe\uff0c\u9002\u5408\u6559\u80b2\u548c\u8da3\u5473\u9879\u76ee\u3002\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u548c\u7f16\u7a0b\u6c34\u5e73\uff0c\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u7684\u5e93\u3002<\/p>\n<p><strong>\u7ed8\u5236\u4e94\u661f\u7ea2\u65d7\u65f6\uff0c\u5982\u4f55\u786e\u4fdd\u661f\u661f\u7684\u6bd4\u4f8b\u548c\u4f4d\u7f6e\u51c6\u786e\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fdd\u661f\u661f\u7684\u6bd4\u4f8b\u548c\u4f4d\u7f6e\u51c6\u786e\uff0c\u5efa\u8bae\u4f7f\u7528\u5750\u6807\u7cfb\u8fdb\u884c\u7ed8\u56fe\u3002\u53ef\u4ee5\u5148\u8bbe\u5b9a\u4e00\u4e2a\u6807\u51c6\u7684\u6bd4\u4f8b\uff0c\u4f8b\u5982\u661f\u661f\u7684\u5927\u5c0f\u4e0e\u56fd\u65d7\u7684\u5c3a\u5bf8\u6bd4\u7387\uff0c\u63a5\u7740\u6839\u636e\u4e94\u661f\u7ea2\u65d7\u7684\u8bbe\u8ba1\u89c4\u8303\uff0c\u8ba1\u7b97\u51fa\u6bcf\u9897\u661f\u661f\u7684\u4e2d\u5fc3\u5750\u6807\u3002\u8fd9\u79cd\u65b9\u6cd5\u80fd\u591f\u5e2e\u52a9\u4fdd\u6301\u7ed8\u5236\u4f5c\u54c1\u7684\u51c6\u786e\u6027\u4e0e\u7f8e\u89c2\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u7528Python\u753b\u4e94\u661f\u7ea2\u65d7 \u8981\u7528Python\u753b\u4e94\u661f\u7ea2\u65d7\uff0c\u53ef\u4ee5\u4f7f\u7528matplotlib\u5e93\u3001turtle\u5e93\u3001PI [&hellip;]","protected":false},"author":3,"featured_media":1122615,"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\/1122607"}],"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=1122607"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1122607\/revisions"}],"predecessor-version":[{"id":1122616,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1122607\/revisions\/1122616"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1122615"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1122607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1122607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1122607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}