{"id":982524,"date":"2024-12-27T07:11:31","date_gmt":"2024-12-26T23:11:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/982524.html"},"modified":"2024-12-27T07:11:33","modified_gmt":"2024-12-26T23:11:33","slug":"python%e5%a6%82%e4%bd%95%e5%81%9a%e5%8a%a8%e7%94%bb","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/982524.html","title":{"rendered":"python\u5982\u4f55\u505a\u52a8\u753b"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210950\/285b0db8-59eb-46ad-825b-28944ca840dc.webp\" alt=\"python\u5982\u4f55\u505a\u52a8\u753b\" \/><\/p>\n<p><p> <strong>Python\u5236\u4f5c\u52a8\u753b\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528Matplotlib\u3001Pygame\u3001Manim\u7b49\u5e93\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u4e0d\u540c\u7684\u529f\u80fd\u548c\u7279\u6027\uff0c\u9002\u5408\u4e0d\u540c\u7c7b\u578b\u7684\u52a8\u753b\u5236\u4f5c\u9700\u6c42\u3002<\/strong>\u672c\u6587\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5982\u4f55\u5229\u7528\u8fd9\u4e9b\u5e93\u6765\u521b\u5efa\u52a8\u753b\uff0c\u5e76\u8be6\u7ec6\u63a2\u8ba8\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528Matplotlib\u52a8\u753b\u6a21\u5757\u8fdb\u884c\u7ed8\u56fe\u52a8\u753b\u5236\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001MATPLOTLIB\u52a8\u753b\u6a21\u5757<\/p>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\uff0c\u80fd\u591f\u7528\u4e8e\u521b\u5efa\u9759\u6001\u3001\u52a8\u6001\u4ee5\u53ca\u4ea4\u4e92\u5f0f\u7684\u53ef\u89c6\u5316\u56fe\u8868\u3002\u5176animation\u6a21\u5757\u4e13\u95e8\u7528\u4e8e\u751f\u6210\u52a8\u753b\u3002<\/p>\n<\/p>\n<p><h3>1. Matplotlib\u52a8\u753b\u7684\u57fa\u672c\u6982\u5ff5<\/h3>\n<\/p>\n<p><p>Matplotlib\u52a8\u753b\u6a21\u5757\u63d0\u4f9b\u4e86\u4e24\u79cd\u4e3b\u8981\u7684\u52a8\u753b\u7c7b\uff1aFuncAnimation\u548cArtistAnimation\u3002<strong>FuncAnimation\u7528\u4e8e\u66f4\u65b0\u51fd\u6570\uff0c\u9002\u5408\u5b9e\u65f6\u66f4\u65b0\u6570\u636e\u7684\u56fe\u8868\uff1bArtistAnimation\u5219\u7528\u4e8e\u5c06\u591a\u4e2aArtist\u5bf9\u8c61\u7ec4\u5408\u6210\u52a8\u753b\uff0c\u9002\u5408\u9759\u6001\u5e27\u7684\u8fc7\u6e21\u3002<\/strong><\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528FuncAnimation\u5236\u4f5c\u7b80\u5355\u52a8\u753b<\/h3>\n<\/p>\n<p><p>FuncAnimation\u662fMatplotlib\u4e2d\u6700\u5e38\u7528\u7684\u52a8\u753b\u5de5\u5177\uff0c\u5176\u57fa\u672c\u4f7f\u7528\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5bfc\u5165\u5fc5\u8981\u7684\u5e93<\/strong>\uff1a\u5f15\u5165Matplotlib\u548c\u5176\u4ed6\u9700\u8981\u7684\u5e93\uff0c\u5982NumPy\u3002<\/li>\n<li><strong>\u521b\u5efa\u56fe\u5f62\u5bf9\u8c61<\/strong>\uff1a\u751f\u6210\u4e00\u4e2a\u56fe\u5f62\u548c\u4e00\u4e2a\u6216\u591a\u4e2a\u5b50\u56fe\u3002<\/li>\n<li><strong>\u5b9a\u4e49\u66f4\u65b0\u51fd\u6570<\/strong>\uff1a\u6b64\u51fd\u6570\u7528\u4e8e\u5b9a\u4e49\u6bcf\u4e00\u5e27\u7684\u66f4\u65b0\u903b\u8f91\u3002<\/li>\n<li><strong>\u5b9e\u4f8b\u5316FuncAnimation\u5bf9\u8c61<\/strong>\uff1a\u4f20\u5165\u56fe\u5f62\u5bf9\u8c61\u3001\u66f4\u65b0\u51fd\u6570\u3001\u5e27\u6570\u548c\u95f4\u9694\u7b49\u53c2\u6570\u3002<\/li>\n<li><strong>\u4fdd\u5b58\u6216\u663e\u793a\u52a8\u753b<\/strong>\uff1a\u4f7f\u7528<code>plt.show()<\/code>\u663e\u793a\u6216<code>animation.save()<\/code>\u4fdd\u5b58\u52a8\u753b\u3002<\/li>\n<\/ul>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>from matplotlib.animation import FuncAnimation<\/p>\n<p>fig, ax = plt.subplots()<\/p>\n<p>xdata, ydata = [], []<\/p>\n<p>ln, = plt.plot([], [], &#39;r-&#39;)<\/p>\n<p>def init():<\/p>\n<p>    ax.set_xlim(0, 2*np.pi)<\/p>\n<p>    ax.set_ylim(-1, 1)<\/p>\n<p>    return ln,<\/p>\n<p>def update(frame):<\/p>\n<p>    xdata.append(frame)<\/p>\n<p>    ydata.append(np.sin(frame))<\/p>\n<p>    ln.set_data(xdata, ydata)<\/p>\n<p>    return ln,<\/p>\n<p>ani = FuncAnimation(fig, update, frames=np.linspace(0, 2*np.pi, 128),<\/p>\n<p>                    init_func=init, blit=True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3. \u4f7f\u7528ArtistAnimation\u5236\u4f5c\u5e27\u52a8\u753b<\/h3>\n<\/p>\n<p><p>ArtistAnimation\u9002\u5408\u5904\u7406\u9884\u5148\u751f\u6210\u7684\u56fe\u50cf\u5e27\uff0c\u5c06\u5b83\u4eec\u7ec4\u5408\u6210\u4e00\u4e2a\u52a8\u753b\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528ArtistAnimation\u7684\u57fa\u672c\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u51c6\u5907\u56fe\u50cf\u5e27<\/strong>\uff1a\u751f\u6210\u5e76\u4fdd\u5b58\u6240\u6709\u9700\u8981\u7684\u5e27\u3002<\/li>\n<li><strong>\u521b\u5efa\u56fe\u5f62\u5bf9\u8c61<\/strong>\uff1a\u751f\u6210\u4e00\u4e2aMatplotlib\u7684figure\u5bf9\u8c61\u3002<\/li>\n<li><strong>\u5b9e\u4f8b\u5316ArtistAnimation\u5bf9\u8c61<\/strong>\uff1a\u5c06\u6240\u6709\u5e27\u4f20\u5165ArtistAnimation\u3002<\/li>\n<li><strong>\u663e\u793a\u6216\u4fdd\u5b58\u52a8\u753b<\/strong>\uff1a\u4e0eFuncAnimation\u7c7b\u4f3c\uff0c\u53ef\u4ee5\u663e\u793a\u6216\u4fdd\u5b58\u52a8\u753b\u3002<\/li>\n<\/ul>\n<p><p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>import matplotlib.animation as animation<\/p>\n<p>fig, ax = plt.subplots()<\/p>\n<p>frames = []<\/p>\n<p>x = np.linspace(0, 2 * np.pi, 100)<\/p>\n<p>for i in range(10):<\/p>\n<p>    y = np.sin(x + i * np.pi \/ 10)<\/p>\n<p>    frame = plt.plot(x, y, &#39;r-&#39;)<\/p>\n<p>    frames.append(frame)<\/p>\n<p>ani = animation.ArtistAnimation(fig, frames, interval=200, blit=True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001PYGAME\u5b9e\u73b0\u52a8\u753b<\/p>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684Python\u6a21\u5757\uff0c\u4e13\u95e8\u7528\u4e8e\u7535\u5b50\u6e38\u620f\u5f00\u53d1\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa2D\u52a8\u753b\u3002<\/p>\n<\/p>\n<p><h3>1. Pygame\u7684\u57fa\u672c\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>Pygame\u7684\u52a8\u753b\u4e3b\u8981\u901a\u8fc7\u6e38\u620f\u5faa\u73af\u5b9e\u73b0\uff0c\u6e38\u620f\u5faa\u73af\u8d1f\u8d23\u4e0d\u65ad\u66f4\u65b0\u5c4f\u5e55\u5185\u5bb9\u5e76\u5904\u7406\u4e8b\u4ef6\u3002\u57fa\u672c\u7ed3\u6784\u5305\u62ec\u521d\u59cb\u5316\u3001\u4e3b\u5faa\u73af\u548c\u9000\u51fa\u3002<\/p>\n<\/p>\n<p><h3>2. \u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Pygame\u52a8\u753b<\/h3>\n<\/p>\n<ul>\n<li><strong>\u521d\u59cb\u5316Pygame<\/strong>\uff1a\u901a\u8fc7<code>pygame.init()<\/code>\u521d\u59cb\u5316\u6240\u6709\u5bfc\u5165\u7684Pygame\u6a21\u5757\u3002<\/li>\n<li><strong>\u8bbe\u7f6e\u663e\u793a\u7a97\u53e3<\/strong>\uff1a\u4f7f\u7528<code>pygame.display.set_mode()<\/code>\u5b9a\u4e49\u7a97\u53e3\u5927\u5c0f\u3002<\/li>\n<li><strong>\u6e38\u620f\u4e3b\u5faa\u73af<\/strong>\uff1a\u66f4\u65b0\u6e38\u620f\u72b6\u6001\uff0c\u5904\u7406\u4e8b\u4ef6\uff0c\u91cd\u7ed8\u5c4f\u5e55\u3002<\/li>\n<li><strong>\u9000\u51faPygame<\/strong>\uff1a\u901a\u8fc7<code>pygame.quit()<\/code>\u5b89\u5168\u9000\u51fa\u3002<\/li>\n<\/ul>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Pygame\u52a8\u753b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import sys<\/p>\n<p>pygame.init()<\/p>\n<p>size = width, height = 640, 480<\/p>\n<p>speed = [2, 2]<\/p>\n<p>black = 0, 0, 0<\/p>\n<p>screen = pygame.display.set_mode(size)<\/p>\n<p>ball = pygame.image.load(&quot;ball.png&quot;)<\/p>\n<p>ballrect = ball.get_rect()<\/p>\n<p>while True:<\/p>\n<p>    for event in pygame.event.get():<\/p>\n<p>        if event.type == pygame.QUIT:<\/p>\n<p>            pygame.quit()<\/p>\n<p>            sys.exit()<\/p>\n<p>    ballrect = ballrect.move(speed)<\/p>\n<p>    if ballrect.left &lt; 0 or ballrect.right &gt; width:<\/p>\n<p>        speed[0] = -speed[0]<\/p>\n<p>    if ballrect.top &lt; 0 or ballrect.bottom &gt; height:<\/p>\n<p>        speed[1] = -speed[1]<\/p>\n<p>    screen.fill(black)<\/p>\n<p>    screen.blit(ball, ballrect)<\/p>\n<p>    pygame.display.flip()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001MANIM\u7528\u4e8e\u6570\u5b66\u52a8\u753b<\/p>\n<\/p>\n<p><p>Manim\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u6570\u5b66\u53ef\u89c6\u5316\u7684\u52a8\u753b\u5e93\uff0c\u75313Blue1Brown\u7684Grant Sanderson\u5f00\u53d1\u3002\u5b83\u9002\u5408\u751f\u6210\u590d\u6742\u7684\u6570\u5b66\u52a8\u753b\u3002<\/p>\n<\/p>\n<p><h3>1. Manim\u7684\u57fa\u672c\u6982\u5ff5<\/h3>\n<\/p>\n<p><p>Manim\u901a\u8fc7\u573a\u666f\uff08Scene\uff09\u6765\u5b9a\u4e49\u52a8\u753b\uff0c\u7528\u6237\u53ef\u4ee5\u7ee7\u627fScene\u7c7b\u5e76\u91cd\u5199\u5176\u6784\u9020\u51fd\u6570\u6765\u521b\u5efa\u81ea\u5b9a\u4e49\u52a8\u753b\u3002<\/p>\n<\/p>\n<p><h3>2. \u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Manim\u52a8\u753b<\/h3>\n<\/p>\n<ul>\n<li><strong>\u5b89\u88c5Manim<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5Manim\u3002<\/li>\n<li><strong>\u5b9a\u4e49\u573a\u666f<\/strong>\uff1a\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7c7b\u7ee7\u627fScene\uff0c\u5e76\u5b9e\u73b0\u52a8\u753b\u903b\u8f91\u3002<\/li>\n<li><strong>\u8fd0\u884c\u52a8\u753b<\/strong>\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cManim\u811a\u672c\u3002<\/li>\n<\/ul>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Manim\u52a8\u753b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from manim import *<\/p>\n<p>class HelloWorld(Scene):<\/p>\n<p>    def construct(self):<\/p>\n<p>        text = Text(&quot;Hello, World!&quot;)<\/p>\n<p>        self.play(Write(text))<\/p>\n<h2><strong>To render the animation, run the following command in the terminal:<\/strong><\/h2>\n<h2><strong>manim -pql &lt;your_script_name&gt;.py HelloWorld<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u5176\u4ed6Python\u52a8\u753b\u5e93<\/p>\n<\/p>\n<p><p>\u9664\u4e86Matplotlib\u3001Pygame\u548cManim\u4e4b\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u5e93\u53ef\u4ee5\u7528\u4e8ePython\u52a8\u753b\u5f00\u53d1\uff0c\u5982Plotly\u3001Bokeh\u3001Mayavi\u7b49\u3002\u6bcf\u4e2a\u5e93\u90fd\u6709\u5176\u7279\u5b9a\u7684\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>1. Plotly\u548cBokeh<\/h3>\n<\/p>\n<p><p>Plotly\u548cBokeh\u662f\u4ea4\u4e92\u5f0f\u53ef\u89c6\u5316\u5e93\uff0c\u9002\u5408\u751f\u6210\u53ef\u4ea4\u4e92\u7684Web\u52a8\u753b\u548c\u6570\u636e\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<p><h3>2. Mayavi<\/h3>\n<\/p>\n<p><p>Mayavi\u662f\u7528\u4e8e3D\u79d1\u5b66\u6570\u636e\u53ef\u89c6\u5316\u7684\u5de5\u5177\uff0c\u9002\u5408\u521b\u5efa\u590d\u6742\u76843D\u52a8\u753b\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5de5\u5177\u548c\u5e93\u6765\u521b\u5efa\u52a8\u753b\uff0c\u6bcf\u79cd\u5de5\u5177\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5e94\u7528\u573a\u666f\u548c\u4f18\u52bf\u3002\u901a\u8fc7\u7ed3\u5408\u8fd9\u4e9b\u5e93\u7684\u4f7f\u7528\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u52a8\u753b\u5236\u4f5c\u5de5\u5177\uff0c\u521b\u5efa\u51fa\u9ad8\u6548\u4e14\u7cbe\u7f8e\u7684\u52a8\u753b\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u51fd\u6570\u52a8\u753b\u3001\u6e38\u620f\u5f00\u53d1\u4e2d\u76842D\u52a8\u753b\uff0c\u8fd8\u662f\u590d\u6742\u7684\u6570\u5b66\u548c\u79d1\u5b66\u53ef\u89c6\u5316\u52a8\u753b\uff0cPython\u90fd\u80fd\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u7b80\u5355\u7684\u52a8\u753b\u6548\u679c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u5e93\u6765\u521b\u5efa\u52a8\u753b\u6548\u679c\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662fPygame\u548cMatplotlib\u3002Pygame\u9002\u5408\u5236\u4f5c\u6e38\u620f\u548c\u590d\u6742\u7684\u56fe\u5f62\u52a8\u753b\uff0c\u800cMatplotlib\u5219\u53ef\u4ee5\u7528\u4e8e\u79d1\u5b66\u53ef\u89c6\u5316\u548c\u6570\u636e\u52a8\u753b\u3002\u4f60\u53ef\u4ee5\u4ece\u5b89\u88c5\u8fd9\u4e9b\u5e93\u5f00\u59cb\uff0c\u968f\u540e\u901a\u8fc7\u7f16\u5199\u7b80\u5355\u7684\u4ee3\u7801\u6765\u521b\u5efa\u52a8\u753b\u6548\u679c\uff0c\u5982\u79fb\u52a8\u56fe\u5f62\u6216\u53d8\u5316\u989c\u8272\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u521d\u59cb\u5316\u7a97\u53e3\u3001\u5b9a\u4e49\u52a8\u753b\u5faa\u73af\u3001\u66f4\u65b0\u56fe\u5f62\u72b6\u6001\u5e76\u91cd\u7ed8\u7a97\u53e3\u3002<\/p>\n<p><strong>Python\u52a8\u753b\u5236\u4f5c\u9700\u8981\u54ea\u4e9b\u57fa\u7840\u77e5\u8bc6\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u5236\u4f5c\u52a8\u753b\uff0c\u638c\u63e1\u57fa\u672c\u7684Python\u7f16\u7a0b\u77e5\u8bc6\u662f\u5fc5\u987b\u7684\u3002\u6b64\u5916\uff0c\u4e86\u89e3\u56fe\u5f62\u5b66\u7684\u57fa\u672c\u6982\u5ff5\u3001\u4e8b\u4ef6\u5904\u7406\u3001\u5e27\u7387\u63a7\u5236\u7b49\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u5bf9\u4e8e\u4f7f\u7528Pygame\u7684\u7528\u6237\uff0c\u719f\u6089\u5176\u4e8b\u4ef6\u5faa\u73af\u548c\u7cbe\u7075\u7c7b\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u52a8\u753b\u5236\u4f5c\u7684\u6548\u7387\u3002\u5bf9\u4e8e\u4f7f\u7528Matplotlib\u7684\u7528\u6237\uff0c\u4e86\u89e3\u5176\u7ed8\u56fe\u63a5\u53e3\u548c\u52a8\u753b\u6a21\u5757\u5c06\u6709\u52a9\u4e8e\u4f60\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u52a8\u753b\u6548\u679c\u3002<\/p>\n<p><strong>\u5728\u54ea\u4e9b\u573a\u666f\u4e0b\u6211\u53ef\u4ee5\u4f7f\u7528Python\u5236\u4f5c\u52a8\u753b\uff1f<\/strong><br \/>Python\u52a8\u753b\u7684\u5e94\u7528\u573a\u666f\u975e\u5e38\u5e7f\u6cdb\uff0c\u5305\u62ec\u6559\u80b2\u3001\u6570\u636e\u53ef\u89c6\u5316\u3001\u6e38\u620f\u5f00\u53d1\u548c\u827a\u672f\u521b\u4f5c\u7b49\u3002\u5728\u6559\u80b2\u9886\u57df\uff0c\u53ef\u4ee5\u901a\u8fc7\u52a8\u753b\u5e2e\u52a9\u5b66\u751f\u66f4\u597d\u5730\u7406\u89e3\u590d\u6742\u7684\u6982\u5ff5\uff1b\u5728\u6570\u636e\u53ef\u89c6\u5316\u4e2d\uff0c\u52a8\u6001\u5c55\u793a\u6570\u636e\u53d8\u5316\u8d8b\u52bf\u53ef\u4ee5\u8ba9\u89c2\u4f17\u66f4\u52a0\u76f4\u89c2\u5730\u7406\u89e3\u4fe1\u606f\uff1b\u6e38\u620f\u5f00\u53d1\u5219\u9700\u8981\u8fd0\u7528\u52a8\u753b\u6765\u589e\u5f3a\u6e38\u620f\u7684\u8da3\u5473\u6027\u548c\u4e92\u52a8\u6027\uff1b\u827a\u672f\u521b\u4f5c\u65b9\u9762\uff0cPython\u52a8\u753b\u4e5f\u4e3a\u827a\u672f\u5bb6\u63d0\u4f9b\u4e86\u65b0\u7684\u8868\u73b0\u5f62\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5236\u4f5c\u52a8\u753b\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528Matplotlib\u3001Pygame\u3001Manim\u7b49\u5e93\u3002\u8fd9\u4e9b\u5e93\u63d0 [&hellip;]","protected":false},"author":3,"featured_media":982531,"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\/982524"}],"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=982524"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/982524\/revisions"}],"predecessor-version":[{"id":982533,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/982524\/revisions\/982533"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/982531"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=982524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=982524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=982524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}