{"id":1121943,"date":"2025-01-08T19:15:20","date_gmt":"2025-01-08T11:15:20","guid":{"rendered":""},"modified":"2025-01-08T19:15:22","modified_gmt":"2025-01-08T11:15:22","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e4%b8%8d%e5%90%8c%e9%a3%8e%e6%a0%bc%e6%9d%a1%e5%bd%a2%e5%9b%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1121943.html","title":{"rendered":"\u5982\u4f55\u7528python\u753b\u4e0d\u540c\u98ce\u683c\u6761\u5f62\u56fe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084005\/b2f8d566-220a-40bc-9c9e-dd6548dd6ab7.webp\" alt=\"\u5982\u4f55\u7528python\u753b\u4e0d\u540c\u98ce\u683c\u6761\u5f62\u56fe\" \/><\/p>\n<p><p> <strong>\u7528Python\u753b\u4e0d\u540c\u98ce\u683c\u6761\u5f62\u56fe\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528Seaborn\u5e93\u3001\u4f7f\u7528Plotly\u5e93\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Matplotlib\u548cSeaborn\u8fd9\u4e24\u4e2a\u5e38\u7528\u5e93\u6765\u521b\u5efa\u5404\u79cd\u98ce\u683c\u7684\u6761\u5f62\u56fe\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528Matplotlib\u5e93<\/p>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u6570\u636e\u53ef\u89c6\u5316\u5e93\u4e4b\u4e00\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u8868\uff0c\u5305\u62ec\u6761\u5f62\u56fe\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Matplotlib\u5e93\u521b\u5efa\u4e0d\u540c\u98ce\u683c\u7684\u6761\u5f62\u56fe\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u57fa\u672c\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>Matplotlib\u7684\u57fa\u672c\u6761\u5f62\u56fe\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u51e0\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u751f\u6210\u3002<\/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>labels = [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;]<\/p>\n<p>values = [10, 24, 36, 40]<\/p>\n<h2><strong>\u521b\u5efa\u6761\u5f62\u56fe<\/strong><\/h2>\n<p>plt.bar(labels, values)<\/p>\n<p>plt.xlabel(&#39;Labels&#39;)<\/p>\n<p>plt.ylabel(&#39;Values&#39;)<\/p>\n<p>plt.title(&#39;Basic Bar Chart&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u751f\u6210\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u6761\u5f62\u56fe\uff0c\u663e\u793a\u4e86\u4e0d\u540c\u6807\u7b7e\u5bf9\u5e94\u7684\u6570\u503c\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u6c34\u5e73\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>\u6c34\u5e73\u6761\u5f62\u56fe\u662f\u6761\u5f62\u56fe\u7684\u4e00\u79cd\u53d8\u4f53\uff0c\u6761\u5f62\u56fe\u7684\u6761\u662f\u6c34\u5e73\u653e\u7f6e\u7684\u3002\u4f7f\u7528<code>barh<\/code>\u51fd\u6570\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u521b\u5efa\u6c34\u5e73\u6761\u5f62\u56fe\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u6c34\u5e73\u6761\u5f62\u56fe<\/p>\n<p>plt.barh(labels, values)<\/p>\n<p>plt.xlabel(&#39;Values&#39;)<\/p>\n<p>plt.ylabel(&#39;Labels&#39;)<\/p>\n<p>plt.title(&#39;Horizontal Bar Chart&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u5206\u7ec4\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u6709\u591a\u4e2a\u6570\u636e\u7cfb\u5217\uff0c\u53ef\u4ee5\u4f7f\u7528\u5206\u7ec4\u6761\u5f62\u56fe\u6765\u663e\u793a\u3002\u4e0b\u9762\u7684\u793a\u4f8b\u663e\u793a\u4e86\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u5206\u7ec4\u6761\u5f62\u56fe\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u6570\u636e<\/strong><\/h2>\n<p>N = 4<\/p>\n<p>values1 = [10, 20, 30, 40]<\/p>\n<p>values2 = [15, 25, 35, 45]<\/p>\n<p>ind = np.arange(N)    # x\u8f74\u4f4d\u7f6e<\/p>\n<p>width = 0.35          # \u6761\u5f62\u5bbd\u5ea6<\/p>\n<h2><strong>\u521b\u5efa\u5206\u7ec4\u6761\u5f62\u56fe<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<p>rects1 = ax.bar(ind, values1, width, label=&#39;Series1&#39;)<\/p>\n<p>rects2 = ax.bar(ind + width, values2, width, label=&#39;Series2&#39;)<\/p>\n<p>ax.set_xlabel(&#39;Labels&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Values&#39;)<\/p>\n<p>ax.set_title(&#39;Grouped Bar Chart&#39;)<\/p>\n<p>ax.set_xticks(ind + width \/ 2)<\/p>\n<p>ax.set_xticklabels((&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;))<\/p>\n<p>ax.legend()<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4\u3001\u5806\u53e0\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>\u5806\u53e0\u6761\u5f62\u56fe\u53ef\u4ee5\u7528\u6765\u663e\u793a\u591a\u4e2a\u6570\u636e\u7cfb\u5217\u5728\u540c\u4e00\u4e2a\u6761\u5f62\u4e0a\u53e0\u52a0\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6570\u636e<\/p>\n<p>values3 = [5, 15, 25, 35]<\/p>\n<h2><strong>\u521b\u5efa\u5806\u53e0\u6761\u5f62\u56fe<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<p>ax.bar(labels, values1, label=&#39;Series1&#39;)<\/p>\n<p>ax.bar(labels, values2, bottom=values1, label=&#39;Series2&#39;)<\/p>\n<p>ax.bar(labels, values3, bottom=np.array(values1) + np.array(values2), label=&#39;Series3&#39;)<\/p>\n<p>ax.set_xlabel(&#39;Labels&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Values&#39;)<\/p>\n<p>ax.set_title(&#39;Stacked Bar Chart&#39;)<\/p>\n<p>ax.legend()<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>5\u3001\u5e26\u6709\u8bef\u5dee\u6761\u7684\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u663e\u793a\u6570\u636e\u7684\u4e0d\u786e\u5b9a\u6027\uff0c\u53ef\u4ee5\u5728\u6761\u5f62\u56fe\u4e0a\u6dfb\u52a0\u8bef\u5dee\u6761\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6570\u636e<\/p>\n<p>errors = [2, 3, 4, 1]<\/p>\n<h2><strong>\u521b\u5efa\u5e26\u6709\u8bef\u5dee\u6761\u7684\u6761\u5f62\u56fe<\/strong><\/h2>\n<p>plt.bar(labels, values, yerr=errors, capsize=5)<\/p>\n<p>plt.xlabel(&#39;Labels&#39;)<\/p>\n<p>plt.ylabel(&#39;Values&#39;)<\/p>\n<p>plt.title(&#39;Bar Chart with Error Bars&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528Seaborn\u5e93<\/p>\n<\/p>\n<p><p>Seaborn\u662f\u57fa\u4e8eMatplotlib\u6784\u5efa\u7684\u9ad8\u7ea7\u6570\u636e\u53ef\u89c6\u5316\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u7b80\u6d01\u7684API\uff0c\u80fd\u591f\u8f7b\u677e\u521b\u5efa\u7f8e\u89c2\u7684\u56fe\u8868\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u57fa\u672c\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>Seaborn\u7684\u57fa\u672c\u6761\u5f62\u56fe\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u51e0\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u751f\u6210\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import seaborn as sns<\/p>\n<p>import pandas as pd<\/p>\n<h2><strong>\u6570\u636e<\/strong><\/h2>\n<p>data = pd.DataFrame({<\/p>\n<p>    &#39;Labels&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;],<\/p>\n<p>    &#39;Values&#39;: [10, 24, 36, 40]<\/p>\n<p>})<\/p>\n<h2><strong>\u521b\u5efa\u6761\u5f62\u56fe<\/strong><\/h2>\n<p>sns.barplot(x=&#39;Labels&#39;, y=&#39;Values&#39;, data=data)<\/p>\n<p>plt.xlabel(&#39;Labels&#39;)<\/p>\n<p>plt.ylabel(&#39;Values&#39;)<\/p>\n<p>plt.title(&#39;Basic Bar Chart with Seaborn&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u6c34\u5e73\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>\u6c34\u5e73\u6761\u5f62\u56fe\u5728Seaborn\u4e2d\u4e5f\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u6c34\u5e73\u6761\u5f62\u56fe<\/p>\n<p>sns.barplot(x=&#39;Values&#39;, y=&#39;Labels&#39;, data=data, orient=&#39;h&#39;)<\/p>\n<p>plt.xlabel(&#39;Values&#39;)<\/p>\n<p>plt.ylabel(&#39;Labels&#39;)<\/p>\n<p>plt.title(&#39;Horizontal Bar Chart with Seaborn&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u5206\u7ec4\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>Seaborn\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5730\u521b\u5efa\u5206\u7ec4\u6761\u5f62\u56fe\uff0c\u53ea\u9700\u8981\u5c06\u6570\u636e\u6574\u7406\u6210\u9002\u5f53\u7684\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6570\u636e<\/p>\n<p>data = pd.DataFrame({<\/p>\n<p>    &#39;Labels&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;] * 2,<\/p>\n<p>    &#39;Values&#39;: [10, 20, 30, 40, 15, 25, 35, 45],<\/p>\n<p>    &#39;Series&#39;: [&#39;Series1&#39;] * 4 + [&#39;Series2&#39;] * 4<\/p>\n<p>})<\/p>\n<h2><strong>\u521b\u5efa\u5206\u7ec4\u6761\u5f62\u56fe<\/strong><\/h2>\n<p>sns.barplot(x=&#39;Labels&#39;, y=&#39;Values&#39;, hue=&#39;Series&#39;, data=data)<\/p>\n<p>plt.xlabel(&#39;Labels&#39;)<\/p>\n<p>plt.ylabel(&#39;Values&#39;)<\/p>\n<p>plt.title(&#39;Grouped Bar Chart with Seaborn&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4\u3001\u5e26\u6709\u8bef\u5dee\u6761\u7684\u6761\u5f62\u56fe<\/h3>\n<\/p>\n<p><p>Seaborn\u4e5f\u652f\u6301\u5e26\u6709\u8bef\u5dee\u6761\u7684\u6761\u5f62\u56fe\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6570\u636e<\/p>\n<p>data = pd.DataFrame({<\/p>\n<p>    &#39;Labels&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;],<\/p>\n<p>    &#39;Values&#39;: [10, 24, 36, 40],<\/p>\n<p>    &#39;Errors&#39;: [2, 3, 4, 1]<\/p>\n<p>})<\/p>\n<h2><strong>\u521b\u5efa\u5e26\u6709\u8bef\u5dee\u6761\u7684\u6761\u5f62\u56fe<\/strong><\/h2>\n<p>sns.barplot(x=&#39;Labels&#39;, y=&#39;Values&#39;, data=data, ci=&#39;sd&#39;)<\/p>\n<p>plt.xlabel(&#39;Labels&#39;)<\/p>\n<p>plt.ylabel(&#39;Values&#39;)<\/p>\n<p>plt.title(&#39;Bar Chart with Error Bars using Seaborn&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528Plotly\u5e93<\/p>\n<\/p>\n<p><p>Plotly\u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u7ed8\u56fe\u5e93\uff0c\u7279\u522b\u9002\u7528\u4e8e\u521b\u5efa\u4e92\u52a8\u56fe\u8868\u548c\u5c55\u793a\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u53ea\u7b80\u5355\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Plotly\u521b\u5efa\u57fa\u672c\u6761\u5f62\u56fe\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import plotly.express as px<\/p>\n<h2><strong>\u6570\u636e<\/strong><\/h2>\n<p>data = {<\/p>\n<p>    &#39;Labels&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;],<\/p>\n<p>    &#39;Values&#39;: [10, 24, 36, 40]<\/p>\n<p>}<\/p>\n<h2><strong>\u521b\u5efa\u6761\u5f62\u56fe<\/strong><\/h2>\n<p>fig = px.bar(data, x=&#39;Labels&#39;, y=&#39;Values&#39;, title=&#39;Basic Bar Chart with Plotly&#39;)<\/p>\n<p>fig.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u521b\u5efa\u591a\u79cd\u98ce\u683c\u7684\u6761\u5f62\u56fe\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u6761\u5f62\u56fe\u3001\u6c34\u5e73\u6761\u5f62\u56fe\u3001\u5206\u7ec4\u6761\u5f62\u56fe\u8fd8\u662f\u5806\u53e0\u6761\u5f62\u56fe\uff0cMatplotlib\u548cSeaborn\u90fd\u80fd\u591f\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002\u5982\u679c\u4f60\u9700\u8981\u521b\u5efa\u66f4\u590d\u6742\u548c\u4e92\u52a8\u7684\u56fe\u8868\uff0c\u4e5f\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528Plotly\u5e93\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u6761\u5f62\u56fe\u98ce\u683c\u4ee5\u4f20\u8fbe\u6570\u636e\u7684\u542b\u4e49\uff1f<\/strong><br \/>\u9009\u62e9\u6761\u5f62\u56fe\u7684\u98ce\u683c\u65f6\uff0c\u9700\u8003\u8651\u6570\u636e\u7684\u7c7b\u578b\u548c\u53d7\u4f17\u3002\u6bd4\u5982\uff0c\u4f7f\u7528\u660e\u4eae\u7684\u989c\u8272\u548c\u7b80\u5355\u7684\u8bbe\u8ba1\u53ef\u4ee5\u5438\u5f15\u5e74\u8f7b\u89c2\u4f17\uff0c\u800c\u6b63\u5f0f\u7684\u62a5\u544a\u5219\u53ef\u80fd\u9700\u8981\u66f4\u4e3a\u7b80\u6d01\u548c\u4e13\u4e1a\u7684\u98ce\u683c\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u9634\u5f71\u3001\u6e10\u53d8\u6216\u56fe\u6848\u586b\u5145\u53ef\u4ee5\u589e\u52a0\u56fe\u8868\u7684\u89c6\u89c9\u5438\u5f15\u529b\uff0c\u4f7f\u6570\u636e\u66f4\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u7528\u4e8e\u7ed8\u5236\u6761\u5f62\u56fe\uff1f<\/strong><br \/>\u5e38\u7528\u7684Python\u5e93\u5305\u62ecMatplotlib\u3001Seaborn\u548cPlotly\u3002Matplotlib\u63d0\u4f9b\u4e86\u57fa\u7840\u7684\u7ed8\u56fe\u529f\u80fd\uff0c\u9002\u5408\u521b\u5efa\u7b80\u5355\u7684\u6761\u5f62\u56fe\uff1bSeaborn\u5728Matplotlib\u7684\u57fa\u7840\u4e0a\u8fdb\u884c\u4e86\u5c01\u88c5\uff0c\u63d0\u4f9b\u4e86\u66f4\u7f8e\u89c2\u7684\u9ed8\u8ba4\u6837\u5f0f\u548c\u66f4\u9ad8\u7ea7\u7684\u529f\u80fd\uff1bPlotly\u5219\u652f\u6301\u4ea4\u4e92\u5f0f\u56fe\u8868\uff0c\u9002\u5408\u9700\u8981\u7528\u6237\u4e0e\u56fe\u8868\u8fdb\u884c\u4e92\u52a8\u7684\u573a\u666f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u6761\u5f62\u56fe\u4e2d\u6dfb\u52a0\u6570\u636e\u6807\u7b7e\u4ee5\u63d0\u9ad8\u53ef\u8bfb\u6027\uff1f<\/strong><br \/>\u5728Python\u7ed8\u56fe\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7279\u5b9a\u7684\u51fd\u6570\u6216\u65b9\u6cd5\u5728\u6761\u5f62\u56fe\u4e0a\u6dfb\u52a0\u6570\u636e\u6807\u7b7e\u3002\u4f8b\u5982\uff0cMatplotlib\u7684<code>text<\/code>\u51fd\u6570\u5141\u8bb8\u5728\u6bcf\u4e2a\u6761\u5f62\u7684\u9876\u90e8\u6216\u4e2d\u95f4\u6dfb\u52a0\u6570\u503c\uff0c\u4ee5\u4f7f\u89c2\u4f17\u66f4\u5bb9\u6613\u7406\u89e3\u6bcf\u4e2a\u6761\u5f62\u4ee3\u8868\u7684\u6570\u636e\u91cf\u3002\u6b64\u5916\uff0c\u9009\u62e9\u5408\u9002\u7684\u5b57\u4f53\u548c\u989c\u8272\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u5347\u6807\u7b7e\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u753b\u4e0d\u540c\u98ce\u683c\u6761\u5f62\u56fe\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528Seaborn\u5e93\u3001\u4f7f\u7528Plotly\u5e93 [&hellip;]","protected":false},"author":3,"featured_media":1121952,"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\/1121943"}],"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=1121943"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1121943\/revisions"}],"predecessor-version":[{"id":1121954,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1121943\/revisions\/1121954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1121952"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1121943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1121943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1121943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}