{"id":1041806,"date":"2024-12-31T12:52:17","date_gmt":"2024-12-31T04:52:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1041806.html"},"modified":"2024-12-31T12:52:19","modified_gmt":"2024-12-31T04:52:19","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e5%87%ba%e5%a5%a5%e8%bf%90%e4%ba%94%e7%8e%af","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1041806.html","title":{"rendered":"\u5982\u4f55\u7528Python\u753b\u51fa\u5965\u8fd0\u4e94\u73af"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/2bcc3bfd-46c2-4524-aff6-ce897ffb69d1.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528Python\u753b\u51fa\u5965\u8fd0\u4e94\u73af\" \/><\/p>\n<p><p> <strong>\u7528Python\u753b\u51fa\u5965\u8fd0\u4e94\u73af\u7684\u6b65\u9aa4\u4e3b\u8981\u5305\u62ec\uff1a\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\u3001\u8bbe\u7f6e\u753b\u5e03\u3001\u7ed8\u5236\u4e94\u73af\u3001\u8bbe\u7f6e\u989c\u8272\u53ca\u4f4d\u7f6e<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Python\u7684matplotlib\u5e93\u662f\u5b9e\u73b0\u8fd9\u4e00\u4efb\u52a1\u7684\u5173\u952e\u3002\u8be5\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u7ed8\u56fe\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u8f7b\u677e\u7ed8\u5236\u51fa\u5404\u79cd\u56fe\u5f62\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5229\u7528matplotlib\u5e93\u753b\u51fa\u5965\u8fd0\u4e94\u73af\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5bfc\u5165\u5fc5\u8981\u7684\u5e93<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u7ed8\u56fe\uff0c\u5c24\u5176\u662f\u7ed8\u5236\u590d\u6742\u56fe\u5f62\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5bfc\u5165\u4e00\u4e9b\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\u3002matplotlib\u5e93\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u7ed8\u56fe\u5de5\u5177\uff0c\u5b83\u63d0\u4f9b\u4e86\u975e\u5e38\u4e30\u5bcc\u7684\u56fe\u5f62\u7ed8\u5236\u529f\u80fd\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165matplotlib.pyplot\u6a21\u5757\u3002<\/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>matplotlib.pyplot\u662f\u4e00\u4e2a\u547d\u4ee4\u6837\u5f0f\u51fd\u6570\u96c6\u5408\uff0c\u4f7fmatplotlib\u7684\u529f\u80fd\u7c7b\u4f3c\u4e8eMATLAB\u3002\u6bcf\u4e2apyplot\u51fd\u6570\u5bf9\u4e00\u4e2a\u56fe\u50cf\u8fdb\u884c\u4e00\u4e9b\u6539\u53d8\uff0c\u6bd4\u5982\u521b\u5efa\u4e00\u4e2a\u56fe\u50cf\uff0c\u521b\u5efa\u7ed8\u56fe\u533a\u57df\uff0c\u5728\u7ed8\u56fe\u533a\u57df\u4e2d\u7ed8\u5236\u4e00\u4e9b\u7ebf\u6761\uff0c\u88c5\u9970\u56fe\u50cf\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u8bbe\u7f6e\u753b\u5e03<\/p>\n<\/p>\n<p><p>\u5728\u7ed8\u5236\u56fe\u5f62\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u4e00\u4e2a\u753b\u5e03\u3002\u753b\u5e03\u76f8\u5f53\u4e8e\u4e00\u4e2a\u7a7a\u767d\u7684\u753b\u677f\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e0a\u9762\u8fdb\u884c\u7ed8\u56fe\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528plt.figure()\u51fd\u6570\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u753b\u5e03\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.figure(figsize=(8, 6))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684figsize\u53c2\u6570\u6307\u5b9a\u4e86\u753b\u5e03\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\uff0c\u5355\u4f4d\u662f\u82f1\u5bf8\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u7ed8\u5236\u4e94\u73af<\/p>\n<\/p>\n<p><p>\u5965\u8fd0\u4e94\u73af\u7684\u7ed8\u5236\u4e3b\u8981\u5305\u62ec\u4e94\u4e2a\u5706\u73af\u7684\u7ed8\u5236\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528plt.Circle()\u51fd\u6570\u6765\u521b\u5efa\u4e00\u4e2a\u5706\u73af\uff0c\u7136\u540e\u4f7f\u7528ax.add_artist()\u51fd\u6570\u5c06\u5706\u73af\u6dfb\u52a0\u5230\u753b\u5e03\u4e0a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7ed8\u56fe\u533a\u57df<\/p>\n<p>ax = plt.gca()<\/p>\n<h2><strong>\u521b\u5efa\u4e94\u4e2a\u5706\u73af<\/strong><\/h2>\n<p>circle1 = plt.Circle((1, 1), 0.5, color=&#39;blue&#39;, fill=False, linewidth=5)<\/p>\n<p>circle2 = plt.Circle((2, 1), 0.5, color=&#39;black&#39;, fill=False, linewidth=5)<\/p>\n<p>circle3 = plt.Circle((3, 1), 0.5, color=&#39;red&#39;, fill=False, linewidth=5)<\/p>\n<p>circle4 = plt.Circle((1.5, 0.5), 0.5, color=&#39;yellow&#39;, fill=False, linewidth=5)<\/p>\n<p>circle5 = plt.Circle((2.5, 0.5), 0.5, color=&#39;green&#39;, fill=False, linewidth=5)<\/p>\n<h2><strong>\u5c06\u5706\u73af\u6dfb\u52a0\u5230\u7ed8\u56fe\u533a\u57df<\/strong><\/h2>\n<p>ax.add_artist(circle1)<\/p>\n<p>ax.add_artist(circle2)<\/p>\n<p>ax.add_artist(circle3)<\/p>\n<p>ax.add_artist(circle4)<\/p>\n<p>ax.add_artist(circle5)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e94\u4e2a\u5706\u73af\uff0c\u5e76\u5c06\u5b83\u4eec\u6dfb\u52a0\u5230\u7ed8\u56fe\u533a\u57df\u3002\u6bcf\u4e2aplt.Circle()\u51fd\u6570\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u4e00\u4e2a\u5143\u7ec4\uff0c\u8868\u793a\u5706\u5fc3\u7684\u5750\u6807\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u534a\u5f84\uff0ccolor\u53c2\u6570\u6307\u5b9a\u4e86\u5706\u73af\u7684\u989c\u8272\uff0cfill\u53c2\u6570\u6307\u5b9a\u4e86\u662f\u5426\u586b\u5145\u5706\u73af\uff0clinewidth\u53c2\u6570\u6307\u5b9a\u4e86\u5706\u73af\u7684\u7ebf\u5bbd\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u8bbe\u7f6e\u989c\u8272\u53ca\u4f4d\u7f6e<\/p>\n<\/p>\n<p><p>\u5965\u8fd0\u4e94\u73af\u7684\u989c\u8272\u5206\u522b\u662f\u84dd\u8272\u3001\u9ed1\u8272\u3001\u7ea2\u8272\u3001\u9ec4\u8272\u548c\u7eff\u8272\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eplt.Circle()\u51fd\u6570\u7684color\u53c2\u6570\u6765\u6307\u5b9a\u5706\u73af\u7684\u989c\u8272\u3002\u4e94\u73af\u7684\u4f4d\u7f6e\u4e5f\u9700\u8981\u6309\u7167\u4e00\u5b9a\u7684\u89c4\u5219\u6392\u5217\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5706\u5fc3\u7684\u5750\u6807\u6765\u8c03\u6574\u5706\u73af\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u8303\u56f4<\/p>\n<p>plt.xlim(0, 4)<\/p>\n<p>plt.ylim(0, 2)<\/p>\n<h2><strong>\u9690\u85cf\u5750\u6807\u8f74<\/strong><\/h2>\n<p>ax.set_xticks([])<\/p>\n<p>ax.set_yticks([])<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c\u6211\u4eec\u4f7f\u7528plt.xlim()\u548cplt.ylim()\u51fd\u6570\u8bbe\u7f6e\u4e86\u5750\u6807\u8f74\u7684\u8303\u56f4\uff0c\u786e\u4fdd\u6240\u6709\u7684\u5706\u73af\u90fd\u5728\u753b\u5e03\u7684\u53ef\u89c1\u8303\u56f4\u5185\u3002\u6211\u4eec\u8fd8\u9690\u85cf\u4e86\u5750\u6807\u8f74\u7684\u523b\u5ea6\uff0c\u4f7f\u56fe\u50cf\u770b\u8d77\u6765\u66f4\u7b80\u6d01\u3002\u6700\u540e\uff0c\u6211\u4eec\u4f7f\u7528plt.show()\u51fd\u6570\u663e\u793a\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u7528Python\u7ed8\u5236\u51fa\u5965\u8fd0\u4e94\u73af\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002\u5982\u679c\u4f60\u5bf9Python\u7ed8\u56fe\u6709\u66f4\u591a\u7684\u5174\u8da3\uff0c\u5efa\u8bae\u4f60\u6df1\u5165\u5b66\u4e60matplotlib\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u975e\u5e38\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7ed8\u5236\u5404\u79cd\u590d\u6742\u7684\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4ee3\u7801\u793a\u4f8b<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u6240\u6709\u7684\u4ee3\u7801\u6574\u5408\u5230\u4e00\u8d77\uff0c\u5f62\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u753b\u5e03<\/strong><\/h2>\n<p>plt.figure(figsize=(8, 6))<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7ed8\u56fe\u533a\u57df<\/strong><\/h2>\n<p>ax = plt.gca()<\/p>\n<h2><strong>\u521b\u5efa\u4e94\u4e2a\u5706\u73af<\/strong><\/h2>\n<p>circle1 = plt.Circle((1, 1), 0.5, color=&#39;blue&#39;, fill=False, linewidth=5)<\/p>\n<p>circle2 = plt.Circle((2, 1), 0.5, color=&#39;black&#39;, fill=False, linewidth=5)<\/p>\n<p>circle3 = plt.Circle((3, 1), 0.5, color=&#39;red&#39;, fill=False, linewidth=5)<\/p>\n<p>circle4 = plt.Circle((1.5, 0.5), 0.5, color=&#39;yellow&#39;, fill=False, linewidth=5)<\/p>\n<p>circle5 = plt.Circle((2.5, 0.5), 0.5, color=&#39;green&#39;, fill=False, linewidth=5)<\/p>\n<h2><strong>\u5c06\u5706\u73af\u6dfb\u52a0\u5230\u7ed8\u56fe\u533a\u57df<\/strong><\/h2>\n<p>ax.add_artist(circle1)<\/p>\n<p>ax.add_artist(circle2)<\/p>\n<p>ax.add_artist(circle3)<\/p>\n<p>ax.add_artist(circle4)<\/p>\n<p>ax.add_artist(circle5)<\/p>\n<h2><strong>\u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u8303\u56f4<\/strong><\/h2>\n<p>plt.xlim(0, 4)<\/p>\n<p>plt.ylim(0, 2)<\/p>\n<h2><strong>\u9690\u85cf\u5750\u6807\u8f74<\/strong><\/h2>\n<p>ax.set_xticks([])<\/p>\n<p>ax.set_yticks([])<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd0\u884c\u8fd9\u6bb5\u4ee3\u7801\uff0c\u4f60\u5c06\u770b\u5230\u4e00\u4e2a\u5305\u542b\u4e94\u4e2a\u5706\u73af\u7684\u56fe\u50cf\uff0c\u5b83\u4eec\u5206\u522b\u4ee3\u8868\u5965\u8fd0\u4e94\u73af\u7684\u4e94\u79cd\u989c\u8272\u3002\u6bcf\u4e2a\u5706\u73af\u7684\u989c\u8272\u548c\u4f4d\u7f6e\u90fd\u5df2\u7ecf\u6309\u7167\u5965\u8fd0\u4e94\u73af\u7684\u6807\u51c6\u8fdb\u884c\u4e86\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Python\u7684matplotlib\u5e93\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u3002\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86\u5fc5\u8981\u7684\u5e93\uff0c\u7136\u540e\u8bbe\u7f6e\u4e86\u4e00\u4e2a\u753b\u5e03\uff0c\u5e76\u5728\u753b\u5e03\u4e0a\u7ed8\u5236\u4e86\u4e94\u4e2a\u5706\u73af\u3002\u6700\u540e\uff0c\u6211\u4eec\u8bbe\u7f6e\u4e86\u5706\u73af\u7684\u989c\u8272\u548c\u4f4d\u7f6e\uff0c\u5e76\u663e\u793a\u4e86\u56fe\u50cf\u3002\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u7ed8\u5236\u51fa\u5965\u8fd0\u4e94\u73af\u3002<\/p>\n<\/p>\n<p><p>\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002\u5982\u679c\u4f60\u5bf9Python\u7ed8\u56fe\u6709\u66f4\u591a\u7684\u5174\u8da3\uff0c\u5efa\u8bae\u4f60\u6df1\u5165\u5b66\u4e60matplotlib\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u975e\u5e38\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7ed8\u5236\u5404\u79cd\u590d\u6742\u7684\u56fe\u5f62\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u7684\u4ee3\u7801\u793a\u4f8b\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u8981\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684Matplotlib\u5e93\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n\n# \u8bbe\u7f6e\u4e94\u73af\u7684\u989c\u8272\ncolors = [&#39;blue&#39;, &#39;yellow&#39;, &#39;black&#39;, &#39;green&#39;, &#39;red&#39;]\n# \u8bbe\u7f6e\u4e94\u73af\u7684\u5750\u6807\u548c\u534a\u5f84\nrings = [(0, 0, 1), (1.5, 0, 1), (3, 0, 1), (0.75, -1.25, 1), (2.25, -1.25, 1)]\n\n# \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u56fe\u5f62\nfig, ax = plt.subplots()\n\n# \u7ed8\u5236\u4e94\u4e2a\u73af\nfor i, (x, y, radius) in enumerate(rings):\n    circle = plt.Circle((x, y), radius, color=colors[i], fill=False, linewidth=5)\n    ax.add_artist(circle)\n\n# \u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u8303\u56f4\u548c\u6bd4\u4f8b\nax.set_xlim(-1, 4)\nax.set_ylim(-3, 2)\nax.set_aspect(&#39;equal&#39;, adjustable=&#39;box&#39;)\nax.axis(&#39;off&#39;)  # \u9690\u85cf\u5750\u6807\u8f74\n\n# \u663e\u793a\u56fe\u5f62\nplt.show()\n<\/code><\/pre>\n<p>\u6b64\u4ee3\u7801\u4f1a\u5728\u4e00\u4e2a\u7a97\u53e3\u4e2d\u663e\u793a\u5965\u8fd0\u4e94\u73af\u7684\u56fe\u5f62\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u5e93\uff1f<\/strong><br \/>\u4e3a\u4e86\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\uff0c\u60a8\u9700\u8981\u5b89\u88c5Matplotlib\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<pre><code class=\"language-bash\">pip install matplotlib\n<\/code><\/pre>\n<p>\u786e\u4fdd\u60a8\u7684Python\u73af\u5883\u5df2\u7ecf\u8bbe\u7f6e\u597d\uff0c\u5e76\u4e14\u53ef\u4ee5\u987a\u5229\u8fd0\u884c\u56fe\u5f62\u754c\u9762\u3002<\/p>\n<p><strong>\u7ed8\u5236\u5965\u8fd0\u4e94\u73af\u65f6\u5982\u4f55\u8c03\u6574\u989c\u8272\u548c\u5927\u5c0f\uff1f<\/strong><br \/>\u5728\u4ee3\u7801\u793a\u4f8b\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539<code>colors<\/code>\u5217\u8868\u4e2d\u7684\u989c\u8272\u503c\u6765\u6539\u53d8\u4e94\u73af\u7684\u989c\u8272\u3002\u53ef\u4ee5\u4f7f\u7528\u5e38\u89c1\u7684\u989c\u8272\u540d\u79f0\u6216\u5341\u516d\u8fdb\u5236\u989c\u8272\u4ee3\u7801\u3002\u540c\u65f6\uff0c\u901a\u8fc7\u8c03\u6574<code>radius<\/code>\u53c2\u6570\u7684\u503c\uff0c\u60a8\u53ef\u4ee5\u63a7\u5236\u4e94\u73af\u7684\u5927\u5c0f\u3002\u4f8b\u5982\uff0c\u589e\u5927\u6216\u51cf\u5c0f<code>radius<\/code>\u503c\u4f1a\u76f4\u63a5\u5f71\u54cd\u73af\u7684\u76f4\u5f84\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u753b\u51fa\u5965\u8fd0\u4e94\u73af\u7684\u6b65\u9aa4\u4e3b\u8981\u5305\u62ec\uff1a\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\u3001\u8bbe\u7f6e\u753b\u5e03\u3001\u7ed8\u5236\u4e94\u73af\u3001\u8bbe\u7f6e\u989c\u8272\u53ca\u4f4d\u7f6e\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Pyth [&hellip;]","protected":false},"author":3,"featured_media":1041822,"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\/1041806"}],"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=1041806"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1041806\/revisions"}],"predecessor-version":[{"id":1041824,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1041806\/revisions\/1041824"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1041822"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1041806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1041806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1041806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}