{"id":1049567,"date":"2024-12-31T14:00:28","date_gmt":"2024-12-31T06:00:28","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1049567.html"},"modified":"2024-12-31T14:00:31","modified_gmt":"2024-12-31T06:00:31","slug":"python%e5%a6%82%e4%bd%95%e7%94%bb%e4%b8%89%e7%bb%b4%e7%82%b9%e5%9b%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1049567.html","title":{"rendered":"python\u5982\u4f55\u753b\u4e09\u7ef4\u70b9\u56fe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/32cfc9d0-d106-45c0-819d-1bd94441d880.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u753b\u4e09\u7ef4\u70b9\u56fe\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\u7684\u65b9\u6cd5<\/strong>\u5305\u62ec\uff1a\u4f7f\u7528Matplotlib\u5e93\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\u3001\u521b\u5efa\u4e09\u7ef4\u6570\u636e\u3001\u4f7f\u7528<code>Axes3D<\/code>\u5bf9\u8c61\u521b\u5efa\u4e09\u7ef4\u56fe\u3001\u8bbe\u7f6e\u56fe\u5f62\u6837\u5f0f\u548c\u6807\u7b7e\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u7684\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5fc5\u8981\u7684\u5e93<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Python\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\u4e4b\u524d\uff0c\u9700\u8981\u5b89\u88c5\u5e76\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\u3002\u5e38\u7528\u7684\u5e93\u5305\u62ecMatplotlib\u548cNumpy\u3002Matplotlib\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u7ed8\u56fe\u5e93\uff0c\u800cNumpy\u7528\u4e8e\u751f\u6210\u548c\u64cd\u4f5c\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b89\u88c5\u5e93<\/p>\n<p>!pip install matplotlib numpy<\/p>\n<h2><strong>\u5bfc\u5165\u5e93<\/strong><\/h2>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>from mpl_toolkits.mplot3d import Axes3D<\/p>\n<p>import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u521b\u5efa\u4e09\u7ef4\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Numpy\u5e93\u751f\u6210\u4e09\u7ef4\u6570\u636e\u3002\u53ef\u4ee5\u521b\u5efa\u4e09\u4e2a\u4e00\u7ef4\u6570\u7ec4\uff0c\u5206\u522b\u8868\u793ax\u3001y\u548cz\u5750\u6807\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e09\u7ef4\u6570\u636e<\/p>\n<p>x = np.random.rand(100)  # \u751f\u6210100\u4e2a\u968f\u673ax\u5750\u6807<\/p>\n<p>y = np.random.rand(100)  # \u751f\u6210100\u4e2a\u968f\u673ay\u5750\u6807<\/p>\n<p>z = np.random.rand(100)  # \u751f\u6210100\u4e2a\u968f\u673az\u5750\u6807<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528<code>Axes3D<\/code>\u5bf9\u8c61\u521b\u5efa\u4e09\u7ef4\u56fe<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7Matplotlib\u7684<code>Axes3D<\/code>\u5bf9\u8c61\u6765\u521b\u5efa\u4e09\u7ef4\u56fe\u3002<code>Axes3D<\/code>\u5bf9\u8c61\u662fMatplotlib\u4e2d\u7528\u4e8e\u7ed8\u5236\u4e09\u7ef4\u56fe\u5f62\u7684\u6838\u5fc3\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e09\u7ef4\u56fe<\/p>\n<p>fig = plt.figure()  # \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u56fe\u5f62<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)  # \u6dfb\u52a0\u4e00\u4e2a\u4e09\u7ef4\u5b50\u56fe<\/p>\n<h2><strong>\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe<\/strong><\/h2>\n<p>ax.scatter(x, y, z)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u8bbe\u7f6e\u56fe\u5f62\u6837\u5f0f\u548c\u6807\u7b7e<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u4e09\u7ef4\u70b9\u56fe\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u4e8e\u7406\u89e3\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u56fe\u5f62\u7684\u6837\u5f0f\u548c\u6807\u7b7e\u3002\u5305\u62ec\u8bbe\u7f6e\u70b9\u7684\u989c\u8272\u3001\u5927\u5c0f\u3001\u5f62\u72b6\uff0c\u4ee5\u53ca\u6dfb\u52a0\u8f74\u6807\u7b7e\u548c\u6807\u9898\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bbe\u7f6e\u56fe\u5f62\u6837\u5f0f\u548c\u6807\u7b7e<\/p>\n<p>fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\u5e76\u8bbe\u7f6e\u6837\u5f0f<\/strong><\/h2>\n<p>ax.scatter(x, y, z, c=&#39;r&#39;, marker=&#39;o&#39;)  # \u70b9\u7684\u989c\u8272\u4e3a\u7ea2\u8272\uff0c\u5f62\u72b6\u4e3a\u5706\u5f62<\/p>\n<h2><strong>\u6dfb\u52a0\u8f74\u6807\u7b7e\u548c\u6807\u9898<\/strong><\/h2>\n<p>ax.set_xlabel(&#39;X Label&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Y Label&#39;)<\/p>\n<p>ax.set_zlabel(&#39;Z Label&#39;)<\/p>\n<p>ax.set_title(&#39;3D Scatter Plot&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u5176\u4ed6\u5e93\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\uff08\u5982Plotly\uff09<\/h3>\n<\/p>\n<p><p>\u9664\u4e86Matplotlib\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528Plotly\u5e93\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\u3002Plotly\u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7ed8\u56fe\u5e93\uff0c\u80fd\u591f\u751f\u6210\u66f4\u4e3a\u590d\u6742\u548c\u4ea4\u4e92\u6027\u66f4\u5f3a\u7684\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b89\u88c5Plotly\u5e93<\/p>\n<p>!pip install plotly<\/p>\n<h2><strong>\u5bfc\u5165Plotly\u5e93<\/strong><\/h2>\n<p>import plotly.graph_objects as go<\/p>\n<h2><strong>\u521b\u5efa\u4e09\u7ef4\u70b9\u56fe<\/strong><\/h2>\n<p>fig = go.Figure(data=[go.Scatter3d(<\/p>\n<p>    x=x,<\/p>\n<p>    y=y,<\/p>\n<p>    z=z,<\/p>\n<p>    mode=&#39;markers&#39;,<\/p>\n<p>    marker=dict(<\/p>\n<p>        size=5,<\/p>\n<p>        color=&#39;blue&#39;,  # \u70b9\u7684\u989c\u8272<\/p>\n<p>        opacity=0.8<\/p>\n<p>    )<\/p>\n<p>)])<\/p>\n<h2><strong>\u8bbe\u7f6e\u56fe\u5f62\u6837\u5f0f\u548c\u6807\u7b7e<\/strong><\/h2>\n<p>fig.update_layout(<\/p>\n<p>    title=&#39;3D Scatter Plot&#39;,<\/p>\n<p>    scene=dict(<\/p>\n<p>        xaxis_title=&#39;X Axis&#39;,<\/p>\n<p>        yaxis_title=&#39;Y Axis&#39;,<\/p>\n<p>        zaxis_title=&#39;Z Axis&#39;<\/p>\n<p>    )<\/p>\n<p>)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>fig.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u5904\u7406\u66f4\u591a\u590d\u6742\u7684\u4e09\u7ef4\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5904\u7406\u66f4\u591a\u590d\u6742\u7684\u4e09\u7ef4\u6570\u636e\u3002\u4f8b\u5982\uff0c\u7ed8\u5236\u4e09\u7ef4\u66f2\u9762\u56fe\u6216\u4e09\u7ef4\u6761\u5f62\u56fe\u3002\u4e0b\u9762\u662f\u7ed8\u5236\u4e09\u7ef4\u66f2\u9762\u56fe\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e09\u7ef4\u66f2\u9762\u6570\u636e<\/p>\n<p>X = np.linspace(-5, 5, 100)<\/p>\n<p>Y = np.linspace(-5, 5, 100)<\/p>\n<p>X, Y = np.meshgrid(X, Y)<\/p>\n<p>Z = np.sin(np.sqrt(X&lt;strong&gt;2 + Y&lt;\/strong&gt;2))<\/p>\n<h2><strong>\u521b\u5efa\u4e09\u7ef4\u56fe<\/strong><\/h2>\n<p>fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u4e09\u7ef4\u66f2\u9762\u56fe<\/strong><\/h2>\n<p>ax.plot_surface(X, Y, Z, cmap=&#39;viridis&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u8f74\u6807\u7b7e\u548c\u6807\u9898<\/strong><\/h2>\n<p>ax.set_xlabel(&#39;X Axis&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Y Axis&#39;)<\/p>\n<p>ax.set_zlabel(&#39;Z Axis&#39;)<\/p>\n<p>ax.set_title(&#39;3D Surface Plot&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u5728\u4e09\u7ef4\u56fe\u4e2d\u6dfb\u52a0\u6ce8\u91ca\u548c\u6587\u672c<\/h3>\n<\/p>\n<p><p>\u5728\u4e09\u7ef4\u56fe\u4e2d\u6dfb\u52a0\u6ce8\u91ca\u548c\u6587\u672c\u53ef\u4ee5\u5e2e\u52a9\u89e3\u91ca\u6570\u636e\u6216\u6807\u6ce8\u7279\u5b9a\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e09\u7ef4\u56fe<\/p>\n<p>fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe<\/strong><\/h2>\n<p>ax.scatter(x, y, z)<\/p>\n<h2><strong>\u6dfb\u52a0\u6ce8\u91ca<\/strong><\/h2>\n<p>for i in range(len(x)):<\/p>\n<p>    ax.text(x[i], y[i], z[i], &#39;%d&#39; % i, size=10, zorder=1, color=&#39;k&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u8f74\u6807\u7b7e\u548c\u6807\u9898<\/strong><\/h2>\n<p>ax.set_xlabel(&#39;X Label&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Y Label&#39;)<\/p>\n<p>ax.set_zlabel(&#39;Z Label&#39;)<\/p>\n<p>ax.set_title(&#39;3D Scatter Plot with Annotations&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u4fdd\u5b58\u4e09\u7ef4\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u7684\u4e09\u7ef4\u56fe\u5f62\u53ef\u4ee5\u4fdd\u5b58\u4e3a\u56fe\u50cf\u6587\u4ef6\uff0c\u4ee5\u4fbf\u540e\u7eed\u4f7f\u7528\u6216\u5206\u4eab\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e09\u7ef4\u56fe<\/p>\n<p>fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe<\/strong><\/h2>\n<p>ax.scatter(x, y, z, c=&#39;r&#39;, marker=&#39;o&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u8f74\u6807\u7b7e\u548c\u6807\u9898<\/strong><\/h2>\n<p>ax.set_xlabel(&#39;X Label&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Y Label&#39;)<\/p>\n<p>ax.set_zlabel(&#39;Z Label&#39;)<\/p>\n<p>ax.set_title(&#39;3D Scatter Plot&#39;)<\/p>\n<h2><strong>\u4fdd\u5b58\u56fe\u5f62<\/strong><\/h2>\n<p>plt.savefig(&#39;3d_scatter_plot.png&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e5d\u3001\u4f7f\u7528\u4ea4\u4e92\u529f\u80fd<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Matplotlib\u7684\u4ea4\u4e92\u529f\u80fd\uff0c\u53ef\u4ee5\u5728\u7ed8\u5236\u4e09\u7ef4\u56fe\u65f6\u8fdb\u884c\u65cb\u8f6c\u3001\u7f29\u653e\u7b49\u64cd\u4f5c\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u89c2\u5bdf\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e09\u7ef4\u56fe\u5e76\u542f\u7528\u4ea4\u4e92\u6a21\u5f0f<\/p>\n<p>fig = plt.figure()<\/p>\n<p>ax = fig.add_subplot(111, projection=&#39;3d&#39;)<\/p>\n<h2><strong>\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe<\/strong><\/h2>\n<p>ax.scatter(x, y, z)<\/p>\n<h2><strong>\u6dfb\u52a0\u8f74\u6807\u7b7e\u548c\u6807\u9898<\/strong><\/h2>\n<p>ax.set_xlabel(&#39;X Label&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Y Label&#39;)<\/p>\n<p>ax.set_zlabel(&#39;Z Label&#39;)<\/p>\n<p>ax.set_title(&#39;3D Scatter Plot with Interactive Mode&#39;)<\/p>\n<h2><strong>\u542f\u7528\u4ea4\u4e92\u6a21\u5f0f<\/strong><\/h2>\n<p>plt.ion()<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\u662f\u6570\u636e\u53ef\u89c6\u5316\u4e2d\u5e38\u7528\u7684\u6280\u672f\u4e4b\u4e00\u3002\u901a\u8fc7\u4f7f\u7528Matplotlib\u548cPlotly\u7b49\u5e93\uff0c\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u548c\u5b9a\u5236\u4e09\u7ef4\u56fe\u5f62\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5\u548c\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\u3001\u521b\u5efa\u4e09\u7ef4\u6570\u636e\u3001\u4f7f\u7528<code>Axes3D<\/code>\u5bf9\u8c61\u7ed8\u5236\u4e09\u7ef4\u56fe\u3001\u8bbe\u7f6e\u56fe\u5f62\u6837\u5f0f\u548c\u6807\u7b7e\u3001\u5904\u7406\u590d\u6742\u4e09\u7ef4\u6570\u636e\u3001\u6dfb\u52a0\u6ce8\u91ca\u548c\u6587\u672c\u3001\u4fdd\u5b58\u56fe\u5f62\u4ee5\u53ca\u4f7f\u7528\u4ea4\u4e92\u529f\u80fd\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u80fd\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u638c\u63e1Python\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e09\u7ef4\u70b9\u56fe\u7684\u57fa\u672c\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728Python\u4e2d\u521b\u5efa\u4e09\u7ef4\u70b9\u56fe\u901a\u5e38\u4f7f\u7528Matplotlib\u5e93\u7684<code>mpl_toolkits.mplot3d<\/code>\u6a21\u5757\u3002\u57fa\u672c\u6b65\u9aa4\u5305\u62ec\uff1a\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\uff08\u5982Matplotlib\u548cNumPy\uff09\uff0c\u751f\u6210\u4e09\u7ef4\u5750\u6807\u6570\u636e\uff08X, Y, Z\uff09\uff0c\u7136\u540e\u4f7f\u7528<code>scatter<\/code>\u51fd\u6570\u7ed8\u5236\u70b9\u56fe\u3002\u786e\u4fdd\u5728\u521b\u5efa\u56fe\u5f62\u65f6\u4f7f\u7528<code>Axes3D<\/code>\u6765\u5904\u7406\u4e09\u7ef4\u6570\u636e\u3002<\/p>\n<p><strong>\u6709\u4ec0\u4e48\u5de5\u5177\u6216\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u66f4\u597d\u5730\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\uff1f<\/strong><br \/>\u9664\u4e86Matplotlib\u5916\uff0c\u8fd8\u6709\u591a\u4e2a\u5e93\u53ef\u4ee5\u5e2e\u52a9\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\uff0c\u4f8b\u5982Plotly\u3001Mayavi\u548cSeaborn\u3002Plotly\u63d0\u4f9b\u4e86\u4ea4\u4e92\u5f0f\u56fe\u5f62\u529f\u80fd\uff0c\u9002\u5408\u9700\u8981\u52a8\u6001\u53ef\u89c6\u5316\u7684\u573a\u666f\uff1bMayavi\u5219\u9002\u5408\u79d1\u5b66\u8ba1\u7b97\u548c\u590d\u6742\u7684\u4e09\u7ef4\u6570\u636e\u53ef\u89c6\u5316\uff1bSeaborn\u5219\u5728\u6570\u636e\u5206\u6790\u548c\u7edf\u8ba1\u56fe\u5f62\u65b9\u9762\u8868\u73b0\u4f18\u5f02\u3002<\/p>\n<p><strong>\u5982\u4f55\u81ea\u5b9a\u4e49\u4e09\u7ef4\u70b9\u56fe\u7684\u5916\u89c2\u548c\u6837\u5f0f\uff1f<\/strong><br \/>\u5728Matplotlib\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u70b9\u7684\u989c\u8272\u3001\u5927\u5c0f\u548c\u900f\u660e\u5ea6\u7b49\u5c5e\u6027\u6765\u81ea\u5b9a\u4e49\u4e09\u7ef4\u70b9\u56fe\u7684\u5916\u89c2\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>c<\/code>\u53c2\u6570\u8bbe\u7f6e\u989c\u8272\uff0c<code>s<\/code>\u53c2\u6570\u8bbe\u7f6e\u70b9\u7684\u5927\u5c0f\uff0c<code>alpha<\/code>\u53c2\u6570\u8c03\u6574\u900f\u660e\u5ea6\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u5750\u6807\u8f74\u6807\u7b7e\u3001\u6807\u9898\u548c\u89c6\u89d2\u7b49\u6765\u8fdb\u4e00\u6b65\u7f8e\u5316\u56fe\u5f62\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u7ed8\u5236\u4e09\u7ef4\u70b9\u56fe\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Matplotlib\u5e93\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\u3001\u521b\u5efa\u4e09\u7ef4\u6570\u636e\u3001\u4f7f\u7528Ax [&hellip;]","protected":false},"author":3,"featured_media":1049575,"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\/1049567"}],"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=1049567"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1049567\/revisions"}],"predecessor-version":[{"id":1049579,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1049567\/revisions\/1049579"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1049575"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1049567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1049567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1049567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}