{"id":1034688,"date":"2024-12-31T11:52:14","date_gmt":"2024-12-31T03:52:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1034688.html"},"modified":"2024-12-31T11:52:17","modified_gmt":"2024-12-31T03:52:17","slug":"python%e7%bb%98%e5%9b%be%e5%a6%82%e4%bd%95%e8%87%aa%e5%ae%9a%e4%b9%89%e8%b5%b7%e5%a7%8b%e7%82%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1034688.html","title":{"rendered":"python\u7ed8\u56fe\u5982\u4f55\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/f220ac99-4bdd-4a23-9082-643535e79fc1.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u7ed8\u56fe\u5982\u4f55\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\" \/><\/p>\n<p><p> <strong>Python\u7ed8\u56fe\u5982\u4f55\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u81ea\u5b9a\u4e49\u7ed8\u56fe\u7684\u8d77\u59cb\u70b9\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u4e3b\u8981\u5305\u62ec<strong>\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4\u3001\u4f7f\u7528\u7279\u5b9a\u7684\u7ed8\u56fe\u5e93\u51fd\u6570\u3001\u8c03\u6574\u6570\u636e\u7684\u504f\u79fb\u91cf<\/strong>\u7b49\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u4ee5\u5e38\u7528\u7684\u7ed8\u56fe\u5e93Matplotlib\u4e3a\u4f8b\uff0c\u8bb2\u89e3\u5982\u4f55\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\u3002<strong>\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4<\/strong>\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u8bbe\u5b9ax\u8f74\u548cy\u8f74\u7684\u6700\u5c0f\u503c\u548c\u6700\u5927\u503c\uff0c\u53ef\u4ee5\u7075\u6d3b\u8c03\u6574\u56fe\u5f62\u7684\u8d77\u59cb\u70b9\u548c\u8303\u56f4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4<\/h3>\n<\/p>\n<p><p>\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u901a\u8fc7\u8bbe\u5b9ax\u8f74\u548cy\u8f74\u7684\u6700\u5c0f\u503c\u548c\u6700\u5927\u503c\uff0c\u53ef\u4ee5\u7075\u6d3b\u8c03\u6574\u56fe\u5f62\u7684\u8d77\u59cb\u70b9\u548c\u8303\u56f4\u3002Matplotlib\u63d0\u4f9b\u4e86<code>set_xlim()<\/code>\u548c<code>set_ylim()<\/code>\u51fd\u6570\u6765\u5b8c\u6210\u8fd9\u4e00\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u793a\u4f8b\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>\u521b\u5efa\u56fe\u5f62<\/strong><\/h2>\n<p>plt.plot(x, y)<\/p>\n<h2><strong>\u8bbe\u7f6ex\u8f74\u548cy\u8f74\u7684\u8303\u56f4<\/strong><\/h2>\n<p>plt.xlim(0, 6)<\/p>\n<p>plt.ylim(0, 12)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7<code>plt.xlim(0, 6)<\/code>\u548c<code>plt.ylim(0, 12)<\/code>\u8bbe\u7f6e\u4e86x\u8f74\u548cy\u8f74\u7684\u8303\u56f4\uff0c\u4f7f\u5f97\u7ed8\u56fe\u7684\u8d77\u59cb\u70b9\u4ece(0, 0)\u5f00\u59cb\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u7279\u5b9a\u7684\u7ed8\u56fe\u5e93\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Matplotlib\u7b49\u7ed8\u56fe\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e9b\u7279\u5b9a\u7684\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u56fe\u5f62\u7684\u8d77\u59cb\u70b9\u3002\u4f8b\u5982\uff0c\u5728\u7ed8\u5236\u6563\u70b9\u56fe\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>scatter()<\/code>\u51fd\u6570\u7684\u53c2\u6570\u6765\u8c03\u6574\u8d77\u59cb\u70b9\u548c\u8303\u56f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u793a\u4f8b\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>\u521b\u5efa\u6563\u70b9\u56fe<\/strong><\/h2>\n<p>plt.scatter(x, y)<\/p>\n<h2><strong>\u8bbe\u7f6ex\u8f74\u548cy\u8f74\u7684\u8303\u56f4<\/strong><\/h2>\n<p>plt.xlim(0, 6)<\/p>\n<p>plt.ylim(0, 12)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7<code>plt.scatter(x, y)<\/code>\u521b\u5efa\u6563\u70b9\u56fe\uff0c\u5e76\u4f7f\u7528<code>plt.xlim(0, 6)<\/code>\u548c<code>plt.ylim(0, 12)<\/code>\u8bbe\u7f6e\u4e86x\u8f74\u548cy\u8f74\u7684\u8303\u56f4\uff0c\u4ece\u800c\u81ea\u5b9a\u4e49\u4e86\u8d77\u59cb\u70b9\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u8c03\u6574\u6570\u636e\u7684\u504f\u79fb\u91cf<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u8c03\u6574\u6570\u636e\u7684\u504f\u79fb\u91cf\uff0c\u53ef\u4ee5\u95f4\u63a5\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\u7684\u6548\u679c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u6240\u6709\u6570\u636e\u70b9\u7684\u503c\u51cf\u53bb\u4e00\u4e2a\u5e38\u6570\uff0c\u4f7f\u5f97\u56fe\u5f62\u7684\u8d77\u59cb\u70b9\u4ece\u6240\u9700\u4f4d\u7f6e\u5f00\u59cb\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u793a\u4f8b\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>\u8c03\u6574\u6570\u636e\u7684\u504f\u79fb\u91cf<\/strong><\/h2>\n<p>x_offset = [i - 1 for i in x]<\/p>\n<p>y_offset = [i - 2 for i in y]<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62<\/strong><\/h2>\n<p>plt.plot(x_offset, y_offset)<\/p>\n<h2><strong>\u8bbe\u7f6ex\u8f74\u548cy\u8f74\u7684\u8303\u56f4<\/strong><\/h2>\n<p>plt.xlim(0, 4)<\/p>\n<p>plt.ylim(0, 9)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7\u5c06x\u548cy\u7684\u503c\u5206\u522b\u51cf\u53bb1\u548c2\uff0c\u8c03\u6574\u4e86\u6570\u636e\u7684\u504f\u79fb\u91cf\uff0c\u4f7f\u5f97\u56fe\u5f62\u7684\u8d77\u59cb\u70b9\u4ece(0, 0)\u5f00\u59cb\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u5b50\u56fe\u548c\u5750\u6807\u7cfb<\/h3>\n<\/p>\n<p><p>Matplotlib\u8fd8\u63d0\u4f9b\u4e86\u5b50\u56fe\u548c\u5750\u6807\u7cfb\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5728\u540c\u4e00\u5f20\u56fe\u4e2d\u521b\u5efa\u591a\u4e2a\u5b50\u56fe\uff0c\u5e76\u5206\u522b\u8bbe\u7f6e\u5b83\u4eec\u7684\u8d77\u59cb\u70b9\u548c\u8303\u56f4\u3002\u8fd9\u6837\u53ef\u4ee5\u66f4\u52a0\u7075\u6d3b\u5730\u5c55\u793a\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u793a\u4f8b\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>\u521b\u5efa\u5b50\u56fe<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<h2><strong>\u7ed8\u5236\u56fe\u5f62<\/strong><\/h2>\n<p>ax.plot(x, y)<\/p>\n<h2><strong>\u8bbe\u7f6ex\u8f74\u548cy\u8f74\u7684\u8303\u56f4<\/strong><\/h2>\n<p>ax.set_xlim(0, 6)<\/p>\n<p>ax.set_ylim(0, 12)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7<code>fig, ax = plt.subplots()<\/code>\u521b\u5efa\u4e86\u4e00\u4e2a\u5b50\u56fe\uff0c\u5e76\u4f7f\u7528<code>ax.set_xlim(0, 6)<\/code>\u548c<code>ax.set_ylim(0, 12)<\/code>\u8bbe\u7f6e\u4e86\u5b50\u56fe\u7684x\u8f74\u548cy\u8f74\u8303\u56f4\uff0c\u4ece\u800c\u81ea\u5b9a\u4e49\u4e86\u8d77\u59cb\u70b9\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u4e0d\u540c\u7684\u7ed8\u56fe\u5e93<\/h3>\n<\/p>\n<p><p>\u9664\u4e86Matplotlib\uff0cPython\u8fd8\u6709\u5176\u4ed6\u7ed8\u56fe\u5e93\uff0c\u5982Seaborn\u3001Plotly\u7b49\uff0c\u5b83\u4eec\u4e5f\u63d0\u4f9b\u4e86\u7c7b\u4f3c\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\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<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528Seaborn<\/h4>\n<\/p>\n<p><p>Seaborn\u662f\u4e00\u4e2a\u57fa\u4e8eMatplotlib\u7684\u9ad8\u7ea7\u7ed8\u56fe\u5e93\uff0c\u63d0\u4f9b\u4e86\u66f4\u7b80\u6d01\u7684API\u548c\u66f4\u7f8e\u89c2\u7684\u9ed8\u8ba4\u6837\u5f0f\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4\u548c\u8c03\u6574\u6570\u636e\u504f\u79fb\u91cf\u6765\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import seaborn as sns<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u793a\u4f8b\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>\u521b\u5efa\u56fe\u5f62<\/strong><\/h2>\n<p>sns.lineplot(x=x, y=y)<\/p>\n<h2><strong>\u8bbe\u7f6ex\u8f74\u548cy\u8f74\u7684\u8303\u56f4<\/strong><\/h2>\n<p>plt.xlim(0, 6)<\/p>\n<p>plt.ylim(0, 12)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7<code>sns.lineplot(x=x, y=y)<\/code>\u521b\u5efa\u4e86\u6298\u7ebf\u56fe\uff0c\u5e76\u4f7f\u7528<code>plt.xlim(0, 6)<\/code>\u548c<code>plt.ylim(0, 12)<\/code>\u8bbe\u7f6e\u4e86x\u8f74\u548cy\u8f74\u7684\u8303\u56f4\uff0c\u4ece\u800c\u81ea\u5b9a\u4e49\u4e86\u8d77\u59cb\u70b9\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528Plotly<\/h4>\n<\/p>\n<p><p>Plotly\u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7ed8\u56fe\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u7075\u6d3b\u7684API\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4\u548c\u8c03\u6574\u6570\u636e\u504f\u79fb\u91cf\u6765\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import plotly.graph_objects as go<\/p>\n<h2><strong>\u793a\u4f8b\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>\u521b\u5efa\u56fe\u5f62<\/strong><\/h2>\n<p>fig = go.Figure(data=go.Scatter(x=x, y=y))<\/p>\n<h2><strong>\u8bbe\u7f6ex\u8f74\u548cy\u8f74\u7684\u8303\u56f4<\/strong><\/h2>\n<p>fig.update_layout(xaxis_range=[0, 6], yaxis_range=[0, 12])<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>fig.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7<code>go.Figure(data=go.Scatter(x=x, y=y))<\/code>\u521b\u5efa\u4e86\u6563\u70b9\u56fe\uff0c\u5e76\u4f7f\u7528<code>fig.update_layout(xaxis_range=[0, 6], yaxis_range=[0, 12])<\/code>\u8bbe\u7f6e\u4e86x\u8f74\u548cy\u8f74\u7684\u8303\u56f4\uff0c\u4ece\u800c\u81ea\u5b9a\u4e49\u4e86\u8d77\u59cb\u70b9\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u7ed8\u56fe\u4e2d\uff0c\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4\u3001\u4f7f\u7528\u7279\u5b9a\u7684\u7ed8\u56fe\u5e93\u51fd\u6570\u3001\u8c03\u6574\u6570\u636e\u7684\u504f\u79fb\u91cf\u3001\u4f7f\u7528\u5b50\u56fe\u548c\u5750\u6807\u7cfb\u4ee5\u53ca\u9009\u62e9\u4e0d\u540c\u7684\u7ed8\u56fe\u5e93\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7075\u6d3b\u8c03\u6574\u56fe\u5f62\u7684\u8d77\u59cb\u70b9\u548c\u8303\u56f4\uff0c\u6ee1\u8db3\u4e0d\u540c\u7684\u7ed8\u56fe\u9700\u6c42\u3002\u65e0\u8bba\u662f\u4f7f\u7528Matplotlib\u3001Seaborn\u8fd8\u662fPlotly\uff0c\u90fd\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5bf9\u60a8\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u7ed8\u56fe\u4e2d\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u5750\u6807\u8f74\u8d77\u59cb\u70b9\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528Matplotlib\u5e93\u8fdb\u884c\u7ed8\u56fe\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u8303\u56f4\u6765\u5b9a\u4e49\u81ea\u5b9a\u4e49\u7684\u8d77\u59cb\u70b9\u3002\u53ef\u4ee5\u4f7f\u7528<code>plt.xlim()<\/code>\u548c<code>plt.ylim()<\/code>\u51fd\u6570\u6765\u6307\u5b9ax\u8f74\u548cy\u8f74\u7684\u6700\u5c0f\u503c\u548c\u6700\u5927\u503c\u3002\u4f8b\u5982\uff0c<code>plt.xlim(0, 10)<\/code>\u5c06x\u8f74\u7684\u8d77\u59cb\u70b9\u8bbe\u7f6e\u4e3a0\uff0c\u7ed3\u675f\u70b9\u4e3a10\u3002\u7c7b\u4f3c\u5730\uff0c<code>plt.ylim(0, 5)<\/code>\u53ef\u4ee5\u8bbe\u7f6ey\u8f74\u7684\u8303\u56f4\u3002<\/p>\n<p><strong>\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\u5bf9\u7ed8\u56fe\u7ed3\u679c\u7684\u5f71\u54cd\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\u53ef\u4ee5\u5e2e\u52a9\u7a81\u51fa\u6570\u636e\u7684\u91cd\u8981\u7279\u5f81\uff0c\u6bd4\u5982\u5728\u6570\u636e\u96c6\u4e2d\u5b58\u5728\u79bb\u7fa4\u503c\u65f6\uff0c\u8c03\u6574\u5750\u6807\u8f74\u7684\u8303\u56f4\u53ef\u4ee5\u4f7f\u4e3b\u8981\u6570\u636e\u66f4\u4e3a\u660e\u663e\u3002\u6b64\u5916\uff0c\u5408\u7406\u8bbe\u7f6e\u8d77\u59cb\u70b9\u6709\u52a9\u4e8e\u63d0\u9ad8\u56fe\u8868\u7684\u53ef\u8bfb\u6027\uff0c\u4f7f\u8bfb\u8005\u66f4\u5bb9\u6613\u7406\u89e3\u6570\u636e\u7684\u8d8b\u52bf\u548c\u5173\u7cfb\u3002<\/p>\n<p><strong>\u5728\u7ed8\u56fe\u65f6\u5982\u4f55\u6807\u6ce8\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u5728\u7ed8\u56fe\u4e2d\u6dfb\u52a0\u6ce8\u91ca\u6765\u6807\u6ce8\u81ea\u5b9a\u4e49\u7684\u8d77\u59cb\u70b9\u3002\u4f7f\u7528<code>plt.annotate()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5728\u6307\u5b9a\u7684\u4f4d\u7f6e\u6dfb\u52a0\u6587\u672c\uff0c\u89e3\u91ca\u8be5\u70b9\u7684\u610f\u4e49\u3002\u901a\u8fc7\u8bbe\u7f6e<code>xy<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u6ce8\u91ca\u7684\u5750\u6807\u4f4d\u7f6e\uff0c\u5e76\u901a\u8fc7<code>text<\/code>\u53c2\u6570\u8bbe\u7f6e\u8981\u663e\u793a\u7684\u6587\u5b57\u3002\u8fd9\u6837\uff0c\u89c2\u4f17\u53ef\u4ee5\u66f4\u597d\u5730\u7406\u89e3\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\u7684\u4f5c\u7528\u548c\u91cd\u8981\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u7ed8\u56fe\u5982\u4f55\u81ea\u5b9a\u4e49\u8d77\u59cb\u70b9\uff1a \u5728Python\u4e2d\u81ea\u5b9a\u4e49\u7ed8\u56fe\u7684\u8d77\u59cb\u70b9\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u4e3b\u8981\u5305\u62ec\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4\u3001\u4f7f\u7528 [&hellip;]","protected":false},"author":3,"featured_media":1034698,"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\/1034688"}],"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=1034688"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1034688\/revisions"}],"predecessor-version":[{"id":1034699,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1034688\/revisions\/1034699"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1034698"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1034688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1034688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1034688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}