{"id":1051346,"date":"2024-12-31T14:15:42","date_gmt":"2024-12-31T06:15:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1051346.html"},"modified":"2024-12-31T14:15:44","modified_gmt":"2024-12-31T06:15:44","slug":"python%e5%a6%82%e4%bd%95%e7%bb%99%e6%9f%b1%e5%bd%a2%e5%9b%be%e5%8a%a0%e6%a0%87%e7%ad%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1051346.html","title":{"rendered":"Python\u5982\u4f55\u7ed9\u67f1\u5f62\u56fe\u52a0\u6807\u7b7e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/f5bc697c-28c6-4fdc-b1d4-c454276fd2a3.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"Python\u5982\u4f55\u7ed9\u67f1\u5f62\u56fe\u52a0\u6807\u7b7e\" \/><\/p>\n<p><p> <strong>Python\u7ed9\u67f1\u5f62\u56fe\u52a0\u6807\u7b7e\u7684\u6b65\u9aa4\uff1a\u4f7f\u7528matplotlib\u5e93\u3001\u8bbe\u7f6e\u6807\u7b7e\u4f4d\u7f6e\u3001\u683c\u5f0f\u5316\u6807\u7b7e\u3001\u5904\u7406\u6807\u7b7e\u91cd\u53e0<\/strong><\/p>\n<\/p>\n<p><p>\u7ed9\u67f1\u5f62\u56fe\u52a0\u6807\u7b7e\u662f\u4e3a\u4e86\u8ba9\u6570\u636e\u66f4\u76f4\u89c2\u3002<strong>\u4f7f\u7528matplotlib\u5e93\u662f\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u7684\u5e38\u89c1\u65b9\u6cd5<\/strong>\u3002\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86matplotlib\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7pip install matplotlib\u6765\u5b89\u88c5\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528bar()\u51fd\u6570\u7ed8\u5236\u67f1\u5f62\u56fe\uff0c\u5e76\u4f7f\u7528text()\u51fd\u6570\u6dfb\u52a0\u6807\u7b7e\u3002\u6807\u7b7e\u7684\u4f4d\u7f6e\u9700\u8981\u6839\u636e\u67f1\u5f62\u56fe\u7684\u9ad8\u5ea6\u8fdb\u884c\u8c03\u6574\uff0c\u4ee5\u786e\u4fdd\u6807\u7b7e\u80fd\u51c6\u786e\u5730\u6807\u8bb0\u67f1\u5b50\u7684\u9876\u7aef\u3002\u683c\u5f0f\u5316\u6807\u7b7e\u53ef\u4ee5\u4f7f\u6570\u636e\u5c55\u793a\u5f97\u66f4\u52a0\u7f8e\u89c2\u548c\u4e13\u4e1a\uff0c\u901a\u5e38\u4f1a\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u7684\u65b9\u5f0f\u6765\u8fdb\u884c\u3002\u5904\u7406\u6807\u7b7e\u91cd\u53e0\u662f\u4e00\u4e2a\u5fc5\u987b\u8003\u8651\u7684\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u6570\u636e\u91cf\u8f83\u5927\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u6807\u7b7e\u65cb\u8f6c\u89d2\u5ea6\u6216\u8c03\u6574\u6807\u7b7e\u4f4d\u7f6e\u6765\u907f\u514d\u91cd\u53e0\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e00\u3001\u4f7f\u7528matplotlib\u5e93<\/strong><\/p>\n<\/p>\n<p><p>matplotlib\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\uff0c\u652f\u6301\u591a\u79cd\u56fe\u8868\u7c7b\u578b\u3002\u901a\u8fc7\u5b83\u53ef\u4ee5\u8f7b\u677e\u7ed8\u5236\u67f1\u5f62\u56fe\u5e76\u6dfb\u52a0\u6807\u7b7e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u6570\u636e<\/strong><\/h2>\n<p>categories = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;]<\/p>\n<p>values = [4, 7, 1, 8]<\/p>\n<h2><strong>\u7ed8\u5236\u67f1\u5f62\u56fe<\/strong><\/h2>\n<p>plt.bar(categories, values)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u8868<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4e8c\u3001\u8bbe\u7f6e\u6807\u7b7e\u4f4d\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u7ed9\u67f1\u5f62\u56fe\u52a0\u6807\u7b7e\uff0c\u9700\u8981\u5728\u6bcf\u4e2a\u67f1\u5b50\u7684\u9876\u7aef\u663e\u793a\u5bf9\u5e94\u7684\u6570\u503c\u3002\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u904d\u5386\u6bcf\u4e2a\u67f1\u5b50\uff0c\u7136\u540e\u4f7f\u7528text()\u51fd\u6570\u5728\u9002\u5f53\u7684\u4f4d\u7f6e\u6dfb\u52a0\u6807\u7b7e\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u8bbe\u7f6e\u6807\u7b7e\u4f4d\u7f6e\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6570\u636e<\/p>\n<p>categories = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;]<\/p>\n<p>values = [4, 7, 1, 8]<\/p>\n<h2><strong>\u7ed8\u5236\u67f1\u5f62\u56fe<\/strong><\/h2>\n<p>bars = plt.bar(categories, values)<\/p>\n<h2><strong>\u7ed9\u6bcf\u4e2a\u67f1\u5b50\u52a0\u6807\u7b7e<\/strong><\/h2>\n<p>for bar in bars:<\/p>\n<p>    height = bar.get_height()<\/p>\n<p>    plt.text(bar.get_x() + bar.get_width() \/ 2, height, str(height), ha=&#39;center&#39;, va=&#39;bottom&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u8868<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0cbar.get_x() + bar.get_width() \/ 2\u7528\u4e8e\u83b7\u53d6\u67f1\u5b50\u7684\u4e2d\u5fc3\u4f4d\u7f6e\uff0cheight\u7528\u4e8e\u83b7\u53d6\u67f1\u5b50\u7684\u9ad8\u5ea6\uff0cha=&#39;center&#39;\u548cva=&#39;bottom&#39;\u5206\u522b\u7528\u4e8e\u6c34\u5e73\u548c\u5782\u76f4\u5bf9\u9f50\u6807\u7b7e\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e09\u3001\u683c\u5f0f\u5316\u6807\u7b7e<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5bf9\u6807\u7b7e\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u4f8b\u5982\u6dfb\u52a0\u767e\u5206\u53f7\u6216\u5343\u4f4d\u5206\u9694\u7b26\u3002\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6570\u636e<\/p>\n<p>categories = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;]<\/p>\n<p>values = [4000, 7000, 1000, 8000]<\/p>\n<h2><strong>\u7ed8\u5236\u67f1\u5f62\u56fe<\/strong><\/h2>\n<p>bars = plt.bar(categories, values)<\/p>\n<h2><strong>\u7ed9\u6bcf\u4e2a\u67f1\u5b50\u52a0\u6807\u7b7e<\/strong><\/h2>\n<p>for bar in bars:<\/p>\n<p>    height = bar.get_height()<\/p>\n<p>    plt.text(bar.get_x() + bar.get_width() \/ 2, height, f&#39;{height:,}&#39;, ha=&#39;center&#39;, va=&#39;bottom&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u8868<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0cf&#39;{height:,}&#39;\u7528\u4e8e\u5c06\u6570\u503c\u683c\u5f0f\u5316\u4e3a\u5e26\u6709\u5343\u4f4d\u5206\u9694\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p><strong>\u56db\u3001\u5904\u7406\u6807\u7b7e\u91cd\u53e0<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u6570\u636e\u91cf\u8f83\u5927\u6216\u6807\u7b7e\u8f83\u957f\u7684\u60c5\u51b5\u4e0b\uff0c\u6807\u7b7e\u53ef\u80fd\u4f1a\u91cd\u53e0\u3002\u53ef\u4ee5\u901a\u8fc7\u65cb\u8f6c\u6807\u7b7e\u6216\u8c03\u6574\u6807\u7b7e\u4f4d\u7f6e\u6765\u907f\u514d\u91cd\u53e0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6570\u636e<\/p>\n<p>categories = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;]<\/p>\n<p>values = [4000, 7000, 1000, 8000]<\/p>\n<h2><strong>\u7ed8\u5236\u67f1\u5f62\u56fe<\/strong><\/h2>\n<p>bars = plt.bar(categories, values)<\/p>\n<h2><strong>\u7ed9\u6bcf\u4e2a\u67f1\u5b50\u52a0\u6807\u7b7e\uff0c\u5e76\u65cb\u8f6c\u6807\u7b7e\u4ee5\u907f\u514d\u91cd\u53e0<\/strong><\/h2>\n<p>for bar in bars:<\/p>\n<p>    height = bar.get_height()<\/p>\n<p>    plt.text(bar.get_x() + bar.get_width() \/ 2, height, f&#39;{height:,}&#39;, ha=&#39;center&#39;, va=&#39;bottom&#39;, rotation=45)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u8868<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0crotation=45\u7528\u4e8e\u5c06\u6807\u7b7e\u65cb\u8f6c45\u5ea6\uff0c\u4ee5\u907f\u514d\u6807\u7b7e\u91cd\u53e0\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e94\u3001\u7efc\u5408\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u7ed3\u5408\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u66f4\u590d\u6742\u7684\u67f1\u5f62\u56fe\uff0c\u5e76\u6dfb\u52a0\u6807\u7b7e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7efc\u5408\u5e94\u7528\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import numpy as np<\/p>\n<h2><strong>\u6570\u636e<\/strong><\/h2>\n<p>categories = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;, &#39;E&#39;, &#39;F&#39;]<\/p>\n<p>values = [4000, 7000, 1000, 8000, 5000, 6000]<\/p>\n<h2><strong>\u8bbe\u7f6e\u56fe\u8868\u5927\u5c0f<\/strong><\/h2>\n<p>plt.figure(figsize=(10, 6))<\/p>\n<h2><strong>\u7ed8\u5236\u67f1\u5f62\u56fe<\/strong><\/h2>\n<p>bars = plt.bar(categories, values, color=&#39;skyblue&#39;)<\/p>\n<h2><strong>\u7ed9\u6bcf\u4e2a\u67f1\u5b50\u52a0\u6807\u7b7e\uff0c\u5e76\u683c\u5f0f\u5316\u6807\u7b7e<\/strong><\/h2>\n<p>for bar in bars:<\/p>\n<p>    height = bar.get_height()<\/p>\n<p>    plt.text(bar.get_x() + bar.get_width() \/ 2, height, f&#39;{height:,}&#39;, ha=&#39;center&#39;, va=&#39;bottom&#39;, fontsize=12, rotation=45)<\/p>\n<h2><strong>\u8bbe\u7f6e\u6807\u9898\u548c\u6807\u7b7e<\/strong><\/h2>\n<p>plt.title(&#39;\u67f1\u5f62\u56fe\u793a\u4f8b&#39;, fontsize=16)<\/p>\n<p>plt.xlabel(&#39;\u7c7b\u522b&#39;, fontsize=14)<\/p>\n<p>plt.ylabel(&#39;\u503c&#39;, fontsize=14)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u8868<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u8bbe\u7f6e\u4e86\u56fe\u8868\u5927\u5c0f\u3001\u67f1\u5b50\u7684\u989c\u8272\u3001\u6807\u7b7e\u7684\u5b57\u4f53\u5927\u5c0f\u7b49\uff0c\u4f7f\u5f97\u56fe\u8868\u66f4\u52a0\u7f8e\u89c2\u548c\u4e13\u4e1a\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u4f7f\u7528matplotlib\u5e93\u8f7b\u677e\u5730\u7ed9\u67f1\u5f62\u56fe\u52a0\u6807\u7b7e\uff0c\u5e76\u786e\u4fdd\u6807\u7b7e\u4f4d\u7f6e\u51c6\u786e\u3001\u683c\u5f0f\u7f8e\u89c2\u3001\u907f\u514d\u91cd\u53e0\u3002\u8fd9\u4e9b\u6280\u5de7\u53ef\u4ee5\u5e2e\u52a9\u4f60\u521b\u5efa\u66f4\u52a0\u76f4\u89c2\u548c\u4e13\u4e1a\u7684\u6570\u636e\u53ef\u89c6\u5316\u56fe\u8868\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u7684\u67f1\u5f62\u56fe\u4e2d\u6dfb\u52a0\u6570\u636e\u6807\u7b7e\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u7684Matplotlib\u5e93\u7ed8\u5236\u67f1\u5f62\u56fe\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>ax.text()<\/code>\u51fd\u6570\u4e3a\u6bcf\u4e2a\u67f1\u5b50\u6dfb\u52a0\u6570\u636e\u6807\u7b7e\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5728\u7ed8\u5236\u67f1\u5f62\u56fe\u540e\u5faa\u73af\u8bbf\u95ee\u6bcf\u4e2a\u67f1\u5b50\u7684\u9ad8\u5ea6\uff0c\u5e76\u5728\u5176\u9876\u90e8\u6dfb\u52a0\u6807\u7b7e\u3002\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n\n# \u793a\u4f8b\u6570\u636e\nx = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;]\ny = [3, 7, 5]\n\nplt.bar(x, y)\n\n# \u6dfb\u52a0\u6807\u7b7e\nfor index, value in enumerate(y):\n    plt.text(index, value, str(value), ha=&#39;center&#39;, va=&#39;bottom&#39;)\n\nplt.show()\n<\/code><\/pre>\n<p><strong>\u4f7f\u7528Seaborn\u7ed8\u5236\u67f1\u5f62\u56fe\u65f6\u5982\u4f55\u6dfb\u52a0\u6807\u7b7e\uff1f<\/strong><br \/>\u4f7f\u7528Seaborn\u5e93\u7ed8\u5236\u67f1\u5f62\u56fe\u65f6\uff0c\u53ef\u4ee5\u7ed3\u5408Matplotlib\u7684\u529f\u80fd\u6765\u6dfb\u52a0\u6807\u7b7e\u3002\u901a\u8fc7\u8bbe\u7f6e<code>ax<\/code>\u5bf9\u8c61\u5e76\u4f7f\u7528<code>ax.text()<\/code>\u65b9\u6cd5\uff0c\u60a8\u80fd\u591f\u8f7b\u677e\u5730\u5c06\u6807\u7b7e\u6dfb\u52a0\u5230\u6bcf\u4e2a\u67f1\u5b50\u4e0a\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import seaborn as sns\nimport matplotlib.pyplot as plt\n\n# \u793a\u4f8b\u6570\u636e\ndata = {&#39;\u7c7b\u522b&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;], &#39;\u503c&#39;: [3, 7, 5]}\nsns.barplot(x=&#39;\u7c7b\u522b&#39;, y=&#39;\u503c&#39;, data=data)\n\n# \u6dfb\u52a0\u6807\u7b7e\nfor index, value in enumerate(data[&#39;\u503c&#39;]):\n    plt.text(index, value, str(value), ha=&#39;center&#39;, va=&#39;bottom&#39;)\n\nplt.show()\n<\/code><\/pre>\n<p><strong>\u67f1\u5f62\u56fe\u4e2d\u6807\u7b7e\u7684\u6837\u5f0f\u548c\u4f4d\u7f6e\u5982\u4f55\u81ea\u5b9a\u4e49\uff1f<\/strong><br \/>\u5728\u6dfb\u52a0\u6807\u7b7e\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3001\u989c\u8272\u548c\u4f4d\u7f6e\u6765\u5b9e\u73b0\u4e2a\u6027\u5316\u6837\u5f0f\u3002<code>plt.text()<\/code>\u51fd\u6570\u652f\u6301\u591a\u4e2a\u53c2\u6570\uff0c\u4f8b\u5982<code>fontsize<\/code>\u3001<code>color<\/code>\u7b49\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>ha<\/code>\u548c<code>va<\/code>\u53c2\u6570\u6765\u66f4\u6539\u6807\u7b7e\u7684\u5bf9\u9f50\u65b9\u5f0f\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n\nx = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;]\ny = [3, 7, 5]\n\nplt.bar(x, y)\n\nfor index, value in enumerate(y):\n    plt.text(index, value + 0.2, str(value), ha=&#39;center&#39;, va=&#39;bottom&#39;, fontsize=12, color=&#39;blue&#39;)\n\nplt.show()\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u5c55\u793a\u4e86\u5982\u4f55\u5728\u67f1\u5f62\u56fe\u4e2d\u6dfb\u52a0\u5e26\u6837\u5f0f\u7684\u6807\u7b7e\uff0c\u4f7f\u5176\u66f4\u5177\u53ef\u8bfb\u6027\u548c\u7f8e\u89c2\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u7ed9\u67f1\u5f62\u56fe\u52a0\u6807\u7b7e\u7684\u6b65\u9aa4\uff1a\u4f7f\u7528matplotlib\u5e93\u3001\u8bbe\u7f6e\u6807\u7b7e\u4f4d\u7f6e\u3001\u683c\u5f0f\u5316\u6807\u7b7e\u3001\u5904\u7406\u6807\u7b7e\u91cd\u53e0 \u7ed9\u67f1\u5f62\u56fe [&hellip;]","protected":false},"author":3,"featured_media":1051351,"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\/1051346"}],"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=1051346"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1051346\/revisions"}],"predecessor-version":[{"id":1051353,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1051346\/revisions\/1051353"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1051351"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1051346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1051346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1051346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}