{"id":964004,"date":"2024-12-27T04:24:04","date_gmt":"2024-12-26T20:24:04","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/964004.html"},"modified":"2024-12-27T04:24:06","modified_gmt":"2024-12-26T20:24:06","slug":"python%e5%a6%82%e4%bd%95%e7%bc%96%e7%a8%8b%e6%98%be%e7%a4%ba%e5%9d%90%e6%a0%87","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/964004.html","title":{"rendered":"python\u5982\u4f55\u7f16\u7a0b\u663e\u793a\u5750\u6807"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181021\/5a8b34ee-a3fd-4c19-bc83-b6969d53b45b.webp\" alt=\"python\u5982\u4f55\u7f16\u7a0b\u663e\u793a\u5750\u6807\" \/><\/p>\n<p><p> \u4e00\u3001PYTHON\u7f16\u7a0b\u663e\u793a\u5750\u6807\u7684\u65b9\u6cd5  <\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u663e\u793a\u5750\u6807\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528<strong>matplotlib\u5e93\u3001Tkinter\u5e93\u3001pygame\u5e93<\/strong>\u7b49\u3002\u901a\u8fc7\u8fd9\u4e9b\u5e93\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u56fe\u5f62\u754c\u9762\u6216\u7ed8\u56fe\u4e2d\u663e\u793a\u5750\u6807\u3002<strong>matplotlib\u5e93<\/strong>\u662f\u4e00\u4e2a\u7528\u4e8e\u7ed8\u5236\u56fe\u5f62\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u56fe\u4e2d\u6807\u8bb0\u70b9\u548c\u663e\u793a\u5750\u6807\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528matplotlib\u5e93\u6765\u663e\u793a\u5750\u6807\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5matplotlib\u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<code>pip install matplotlib<\/code>\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u793a\u4f8b\u4ee3\u7801\u6765\u7ed8\u5236\u56fe\u5f62\u5e76\u663e\u793a\u5750\u6807\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u6570\u636e<\/strong><\/h2>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y = [2, 3, 5, 7, 11]<\/p>\n<h2><strong>\u7ed8\u5236\u56fe\u5f62<\/strong><\/h2>\n<p>plt.plot(x, y, &#39;bo&#39;)  # \u4f7f\u7528\u84dd\u8272\u5706\u70b9\u6807\u8bb0<\/p>\n<h2><strong>\u6807\u8bb0\u70b9\u5e76\u663e\u793a\u5750\u6807<\/strong><\/h2>\n<p>for i in range(len(x)):<\/p>\n<p>    plt.text(x[i], y[i], f&#39;({x[i]},{y[i]})&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.xlabel(&#39;X\u8f74&#39;)<\/p>\n<p>plt.ylabel(&#39;Y\u8f74&#39;)<\/p>\n<p>plt.title(&#39;\u5750\u6807\u663e\u793a\u793a\u4f8b&#39;)<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001MATPLOTLIB\u5e93\u7684\u4f7f\u7528\u65b9\u6cd5  <\/p>\n<\/p>\n<p><p>1\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5e93  <\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86matplotlib\u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<code>pip install matplotlib<\/code>\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u4f60\u7684Python\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><\/code><\/pre>\n<\/p>\n<p><p>2\u3001\u521b\u5efa\u6570\u636e\u548c\u7ed8\u5236\u56fe\u5f62  <\/p>\n<\/p>\n<p><p>\u5728matplotlib\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>plot()<\/code>\u51fd\u6570\u6765\u7ed8\u5236\u6298\u7ebf\u56fe\u6216\u6563\u70b9\u56fe\u3002\u4f8b\u5982\uff0c\u521b\u5efa\u4e24\u4e2a\u5217\u8868<code>x<\/code>\u548c<code>y<\/code>\uff0c\u8868\u793a\u6570\u636e\u7684x\u548cy\u5750\u6807\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = [1, 2, 3, 4, 5]<\/p>\n<p>y = [2, 3, 5, 7, 11]<\/p>\n<p>plt.plot(x, y, &#39;bo&#39;)  # \u4f7f\u7528\u84dd\u8272\u5706\u70b9\u6807\u8bb0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3\u3001\u6807\u8bb0\u5750\u6807\u70b9  <\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u5728\u56fe\u4e2d\u663e\u793a\u5750\u6807\uff0c\u53ef\u4ee5\u4f7f\u7528<code>text()<\/code>\u51fd\u6570\u5728\u6bcf\u4e2a\u6570\u636e\u70b9\u65c1\u8fb9\u6807\u8bb0\u5176\u5750\u6807\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(len(x)):<\/p>\n<p>    plt.text(x[i], y[i], f&#39;({x[i]},{y[i]})&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>4\u3001\u663e\u793a\u56fe\u5f62  <\/p>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u4f7f\u7528<code>show()<\/code>\u51fd\u6570\u6765\u663e\u793a\u7ed8\u5236\u7684\u56fe\u5f62\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.xlabel(&#39;X\u8f74&#39;)<\/p>\n<p>plt.ylabel(&#39;Y\u8f74&#39;)<\/p>\n<p>plt.title(&#39;\u5750\u6807\u663e\u793a\u793a\u4f8b&#39;)<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001TKINTER\u5e93\u7684\u4f7f\u7528\u65b9\u6cd5  <\/p>\n<\/p>\n<p><p>1\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5e93  <\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u56e0\u6b64\u901a\u5e38\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002\u5728\u4f60\u7684Python\u811a\u672c\u4e2d\u5bfc\u5165\u8be5\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>2\u3001\u521b\u5efa\u4e3b\u7a97\u53e3\u548c\u753b\u5e03  <\/p>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2aTkinter\u7a97\u53e3\uff0c\u5e76\u5728\u5176\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u753b\u5e03\uff0c\u7528\u4e8e\u7ed8\u5236\u548c\u663e\u793a\u5750\u6807\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">root = tk.Tk()<\/p>\n<p>canvas = tk.Canvas(root, width=400, height=400)<\/p>\n<p>canvas.pack()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3\u3001\u7ed8\u5236\u5750\u6807\u70b9  <\/p>\n<\/p>\n<p><p>\u5728\u753b\u5e03\u4e0a\u7ed8\u5236\u70b9\uff0c\u5e76\u4f7f\u7528<code>create_text()<\/code>\u65b9\u6cd5\u663e\u793a\u5750\u6807\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x, y = 200, 200  # \u4e2d\u5fc3\u70b9\u5750\u6807<\/p>\n<p>canvas.create_oval(x-5, y-5, x+5, y+5, fill=&#39;blue&#39;)  # \u7ed8\u5236\u5706\u70b9<\/p>\n<p>canvas.create_text(x, y-10, text=f&#39;({x},{y})&#39;)  # \u663e\u793a\u5750\u6807<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>4\u3001\u8fd0\u884c\u4e3b\u5faa\u73af  <\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/code>\u65b9\u6cd5\u542f\u52a8Tkinter\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001PYGAME\u5e93\u7684\u4f7f\u7528\u65b9\u6cd5  <\/p>\n<\/p>\n<p><p>1\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5e93  <\/p>\n<\/p>\n<p><p>\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86pygame\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<code>pip install pygame<\/code>\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u4f60\u7684Python\u811a\u672c\u4e2d\u5bfc\u5165\u8be5\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>2\u3001\u521d\u59cb\u5316\u5e76\u521b\u5efa\u7a97\u53e3  <\/p>\n<\/p>\n<p><p>\u521d\u59cb\u5316pygame\u5e76\u521b\u5efa\u4e00\u4e2a\u7a97\u53e3\uff0c\u8bbe\u7f6e\u5176\u5927\u5c0f\u548c\u6807\u9898\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pygame.init()<\/p>\n<p>screen = pygame.display.set_mode((400, 400))<\/p>\n<p>pygame.display.set_caption(&#39;\u5750\u6807\u663e\u793a\u793a\u4f8b&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3\u3001\u7ed8\u5236\u5750\u6807\u70b9\u548c\u663e\u793a\u5750\u6807  <\/p>\n<\/p>\n<p><p>\u4f7f\u7528pygame\u7684\u7ed8\u56fe\u51fd\u6570\u5728\u7a97\u53e3\u4e2d\u7ed8\u5236\u70b9\uff0c\u5e76\u663e\u793a\u5176\u5750\u6807\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))  # \u6e05\u5c4f<\/p>\n<p>    x, y = 200, 200  # \u4e2d\u5fc3\u70b9\u5750\u6807<\/p>\n<p>    pygame.draw.circle(screen, (0, 0, 255), (x, y), 5)  # \u7ed8\u5236\u5706\u70b9<\/p>\n<p>    font = pygame.font.Font(None, 24)<\/p>\n<p>    text = font.render(f&#39;({x},{y})&#39;, True, (0, 0, 0))<\/p>\n<p>    screen.blit(text, (x, y-20))  # \u663e\u793a\u5750\u6807<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u5176\u4ed6\u663e\u793a\u5750\u6807\u7684\u65b9\u6cd5  <\/p>\n<\/p>\n<p><p>1\u3001\u4f7f\u7528Pandas\u548cMatplotlib\u7ed3\u5408  <\/p>\n<\/p>\n<p><p>Pandas\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u5e93\uff0c\u53ef\u4ee5\u4e0ematplotlib\u7ed3\u5408\u4f7f\u7528\uff0c\u8f7b\u677e\u7ed8\u5236\u6570\u636e\u5e76\u663e\u793a\u5750\u6807\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Pandas\u8bfb\u53d6CSV\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528matplotlib\u7ed8\u5236\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>data = pd.read_csv(&#39;data.csv&#39;)<\/p>\n<p>plt.scatter(data[&#39;x&#39;], data[&#39;y&#39;])<\/p>\n<p>for i, row in data.iterrows():<\/p>\n<p>    plt.text(row[&#39;x&#39;], row[&#39;y&#39;], f&quot;({row[&#39;x&#39;]},{row[&#39;y&#39;]})&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>2\u3001\u4f7f\u7528Seaborn\u5e93  <\/p>\n<\/p>\n<p><p>Seaborn\u662f\u4e00\u4e2a\u57fa\u4e8ematplotlib\u7684\u9ad8\u7ea7\u6570\u636e\u53ef\u89c6\u5316\u5e93\uff0c\u63d0\u4f9b\u4e86\u66f4\u4e3a\u7f8e\u89c2\u7684\u7ed8\u56fe\u529f\u80fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import seaborn as sns<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>data = sns.load_dataset(&#39;iris&#39;)<\/p>\n<p>sns.scatterplot(x=&#39;sepal_length&#39;, y=&#39;sepal_width&#39;, data=data)<\/p>\n<p>for i, row in data.iterrows():<\/p>\n<p>    plt.text(row[&#39;sepal_length&#39;], row[&#39;sepal_width&#39;], f&quot;({row[&#39;sepal_length&#39;]},{row[&#39;sepal_width&#39;]})&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3\u3001\u4f7f\u7528Bokeh\u5e93  <\/p>\n<\/p>\n<p><p>Bokeh\u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u4ea4\u4e92\u5f0f\u3001\u53ef\u7f29\u653e\u7684\u73b0\u4ee3Web\u6d4f\u89c8\u5668\u4e2d\u7684\u53ef\u89c6\u5316\u7684Python\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from bokeh.plotting import figure, show<\/p>\n<p>p = figure(title=&quot;\u5750\u6807\u663e\u793a\u793a\u4f8b&quot;, x_axis_label=&#39;X\u8f74&#39;, y_axis_label=&#39;Y\u8f74&#39;)<\/p>\n<p>p.circle([1, 2, 3, 4, 5], [2, 3, 5, 7, 11], size=10, color=&quot;navy&quot;, alpha=0.5)<\/p>\n<p>show(p)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u8f7b\u677e\u5730\u663e\u793a\u5750\u6807\u3002\u4e0d\u8bba\u662f\u7528\u4e8e\u7b80\u5355\u7684GUI\u5e94\u7528\uff0c\u8fd8\u662f\u7528\u4e8e\u590d\u6742\u7684\u6570\u636e\u53ef\u89c6\u5316\uff0cPython\u90fd\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u548c\u5e93\u6765\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u5750\u6807\u56fe\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Matplotlib\u5e93\u6765\u7ed8\u5236\u5750\u6807\u56fe\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Matplotlib\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pip install matplotlib<\/code>\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f7f\u7528<code>import matplotlib.pyplot as plt<\/code>\u5bfc\u5165\u5e93\uff0c\u5e76\u4f7f\u7528<code>plt.plot(x, y)<\/code>\u51fd\u6570\u6765\u7ed8\u5236\u5750\u6807\u56fe\uff0c\u5176\u4e2d<code>x<\/code>\u548c<code>y<\/code>\u662f\u8868\u793a\u5750\u6807\u7684\u5217\u8868\u3002\u6700\u540e\uff0c\u8c03\u7528<code>plt.show()<\/code>\u6765\u663e\u793a\u56fe\u5f62\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u5750\u6807\u5e76\u663e\u793a\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u5750\u6807\u3002\u7528\u6237\u53ef\u4ee5\u8f93\u5165\u5750\u6807\u7684\u503c\uff0c\u4f8b\u5982<code>x<\/code>\u548c<code>y<\/code>\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u503c\u8f6c\u6362\u4e3a\u6570\u503c\u7c7b\u578b\uff08\u5982<code>int<\/code>\u6216<code>float<\/code>\uff09\u3002\u4e4b\u540e\uff0c\u53ef\u4ee5\u5229\u7528Matplotlib\u5e93\u5c06\u8fd9\u4e9b\u5750\u6807\u7ed8\u5236\u6210\u56fe\u5f62\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">x = float(input(&quot;\u8bf7\u8f93\u5165x\u5750\u6807: &quot;))\ny = float(input(&quot;\u8bf7\u8f93\u5165y\u5750\u6807: &quot;))\nplt.scatter(x, y)  # \u7ed8\u5236\u6563\u70b9\u56fe\nplt.show()\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u7a0b\u5e8f\u4e2d\u81ea\u5b9a\u4e49\u5750\u6807\u8f74\u7684\u8303\u56f4\u548c\u6807\u7b7e\uff1f<\/strong><br \/>\u81ea\u5b9a\u4e49\u5750\u6807\u8f74\u7684\u8303\u56f4\u548c\u6807\u7b7e\u53ef\u4ee5\u901a\u8fc7Matplotlib\u5e93\u7684<code>plt.xlim()<\/code>\u548c<code>plt.ylim()<\/code>\u51fd\u6570\u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u8303\u56f4\u3002\u4f7f\u7528<code>plt.xlabel()<\/code>\u548c<code>plt.ylabel()<\/code>\u51fd\u6570\u53ef\u4ee5\u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u6807\u7b7e\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u8303\u56f4\u548c\u6807\u7b7e\uff1a  <\/p>\n<pre><code class=\"language-python\">plt.xlim(0, 10)  # \u8bbe\u7f6ex\u8f74\u8303\u56f4\nplt.ylim(0, 10)  # \u8bbe\u7f6ey\u8f74\u8303\u56f4\nplt.xlabel(&quot;X\u8f74\u6807\u7b7e&quot;)  # \u8bbe\u7f6ex\u8f74\u6807\u7b7e\nplt.ylabel(&quot;Y\u8f74\u6807\u7b7e&quot;)  # \u8bbe\u7f6ey\u8f74\u6807\u7b7e\n<\/code><\/pre>\n<p>\u8fd9\u4e9b\u8bbe\u7f6e\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u5750\u6807\u56fe\u4e2d\u7684\u6570\u636e\u5206\u5e03\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e00\u3001PYTHON\u7f16\u7a0b\u663e\u793a\u5750\u6807\u7684\u65b9\u6cd5 \u5728Python\u4e2d\u663e\u793a\u5750\u6807\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528matplotlib\u5e93\u3001 [&hellip;]","protected":false},"author":3,"featured_media":964010,"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\/964004"}],"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=964004"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/964004\/revisions"}],"predecessor-version":[{"id":964014,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/964004\/revisions\/964014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/964010"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=964004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=964004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=964004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}