{"id":1000960,"date":"2024-12-27T09:55:15","date_gmt":"2024-12-27T01:55:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1000960.html"},"modified":"2024-12-27T09:55:33","modified_gmt":"2024-12-27T01:55:33","slug":"python%e4%bd%9c%e5%9b%be%e5%a6%82%e4%bd%95%e6%98%be%e7%a4%ba%e6%b1%89%e8%af%ad","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1000960.html","title":{"rendered":"python\u4f5c\u56fe\u5982\u4f55\u663e\u793a\u6c49\u8bed"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075339\/8d6d1b08-c67d-4878-9118-40bafb62c4ae.webp\" alt=\"python\u4f5c\u56fe\u5982\u4f55\u663e\u793a\u6c49\u8bed\" \/><\/p>\n<p><p> \u4e00\u3001\u5728Python\u4f5c\u56fe\u4e2d\u663e\u793a\u6c49\u8bed\u7684\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u4f5c\u56fe\u663e\u793a\u6c49\u8bed\uff0c\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u6cd5\uff1a<strong>\u8bbe\u7f6e\u5b57\u4f53\u3001\u4f7f\u7528matplotlib\u7684rcParams\u3001\u5b89\u88c5\u5b57\u4f53\u5e93\u3001\u786e\u4fdd\u5b57\u4f53\u6587\u4ef6\u8def\u5f84\u6b63\u786e<\/strong>\u3002\u5176\u4e2d\uff0c\u8bbe\u7f6e\u5b57\u4f53\u662f\u4e00\u79cd\u5e38\u89c1\u4e14\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u76f4\u63a5\u8bbe\u7f6e\u5b57\u4f53\u6765\u663e\u793a\u6c49\u5b57\uff0c\u786e\u4fdd\u5176\u80fd\u591f\u6b63\u5e38\u663e\u793a\u3002<\/p>\n<\/p>\n<p><p>\u8bbe\u7f6e\u5b57\u4f53\u662f\u4f7fPython\u4f5c\u56fe\u663e\u793a\u6c49\u8bed\u7684\u4e00\u79cd\u76f4\u63a5\u6709\u6548\u7684\u65b9\u6cd5\u3002\u901a\u5e38\u4f7f\u7528matplotlib\u5e93\u8fdb\u884c\u4f5c\u56fe\u65f6\uff0c\u9ed8\u8ba4\u5b57\u4f53\u662f\u4e0d\u652f\u6301\u6c49\u5b57\u7684\u3002\u56e0\u6b64\uff0c\u9700\u8981\u624b\u52a8\u6307\u5b9a\u652f\u6301\u6c49\u5b57\u7684\u5b57\u4f53\uff0c\u5982SimHei\uff08\u9ed1\u4f53\uff09\u6216\u8005\u5176\u4ed6\u5df2\u5b89\u88c5\u7684\u4e2d\u6587\u5b57\u4f53\u3002\u53ef\u4ee5\u901a\u8fc7matplotlib\u7684<code>rcParams<\/code>\u8bbe\u7f6e\u5b57\u4f53\u5c5e\u6027\uff0c\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;]  # \u8bbe\u7f6e\u5b57\u4f53\u4e3a\u9ed1\u4f53<\/p>\n<p>plt.rcParams[&#39;axes.unicode_minus&#39;] = False  # \u89e3\u51b3\u8d1f\u53f7\u663e\u793a\u95ee\u9898<\/p>\n<h2><strong>\u793a\u4f8b\u4f5c\u56fe<\/strong><\/h2>\n<p>plt.plot([1, 2, 3], [4, 5, 6])<\/p>\n<p>plt.title(&#39;\u793a\u4f8b\u56fe&#39;)<\/p>\n<p>plt.xlabel(&#39;X\u8f74&#39;)<\/p>\n<p>plt.ylabel(&#39;Y\u8f74&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4ee3\u7801\uff0c\u53ef\u4ee5\u5728\u56fe\u8868\u4e2d\u6b63\u786e\u663e\u793a\u6c49\u5b57\u6807\u9898\u548c\u6807\u7b7e\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u8bbe\u7f6e\u5b57\u4f53<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8bbe\u7f6e\u5b57\u4f53\u662f\u786e\u4fdd\u6c49\u5b57\u663e\u793a\u7684\u5173\u952e\u6b65\u9aa4\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cmatplotlib\u4f7f\u7528\u7684\u5b57\u4f53\u53ef\u80fd\u4e0d\u652f\u6301\u6c49\u5b57\uff0c\u56e0\u6b64\u9700\u8981\u6307\u5b9a\u4e00\u4e2a\u652f\u6301\u6c49\u5b57\u7684\u5b57\u4f53\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u786e\u8ba4\u7cfb\u7edf\u4e2d\u5df2\u6709\u7684\u4e2d\u6587\u5b57\u4f53<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\u9700\u8981\u786e\u8ba4\u7cfb\u7edf\u4e2d\u5b89\u88c5\u4e86\u54ea\u4e9b\u4e2d\u6587\u5b57\u4f53\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u5217\u51fa\u6240\u6709\u53ef\u7528\u5b57\u4f53\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.font_manager as fm<\/p>\n<p>for font in fm.findSystemFonts():<\/p>\n<p>    print(fm.FontProperties(fname=font).get_name())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8f93\u51fa\u7ed3\u679c\u4e2d\u67e5\u627e\u5e38\u89c1\u7684\u4e2d\u6587\u5b57\u4f53\uff0c\u5982<code>SimHei<\/code>\u3001<code>Microsoft YaHei<\/code>\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6ematplotlib\u4f7f\u7528\u7684\u5b57\u4f53<\/strong><\/p>\n<\/p>\n<p><p>\u786e\u8ba4\u5b57\u4f53\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7<code>rcParams<\/code>\u8bbe\u7f6e\u5b57\u4f53\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;]  # \u8bbe\u7f6e\u4e3a\u9ed1\u4f53<\/p>\n<p>plt.rcParams[&#39;axes.unicode_minus&#39;] = False  # \u89e3\u51b3\u8d1f\u53f7\u663e\u793a\u95ee\u9898<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u56fe\u8868\u4e2d\u663e\u793a\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528matplotlib\u7684rcParams<\/p>\n<\/p>\n<p><p><code>rcParams<\/code>\u662fmatplotlib\u7528\u4e8e\u914d\u7f6e\u56fe\u5f62\u5916\u89c2\u7684\u53c2\u6570\u5b57\u5178\uff0c\u901a\u8fc7\u4fee\u6539<code>rcParams<\/code>\u53ef\u4ee5\u5168\u5c40\u8bbe\u7f6e\u5b57\u4f53\u548c\u5176\u4ed6\u5c5e\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbe\u7f6e\u5b57\u4f53<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7<code>rcParams[&#39;font.sans-serif&#39;]<\/code>\u8bbe\u7f6e\u5b57\u4f53\u7cfb\u5217\uff0c\u901a\u8fc7<code>rcParams[&#39;axes.unicode_minus&#39;]<\/code>\u89e3\u51b3\u8d1f\u53f7\u663e\u793a\u95ee\u9898\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;]<\/p>\n<p>plt.rcParams[&#39;axes.unicode_minus&#39;] = False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5176\u4ed6\u5e38\u7528\u8bbe\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u8fd8\u53ef\u4ee5\u901a\u8fc7<code>rcParams<\/code>\u8bbe\u7f6e\u56fe\u5f62\u5927\u5c0f\u3001\u7ebf\u5bbd\u3001\u989c\u8272\u7b49\u5c5e\u6027\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.rcParams[&#39;figure.figsize&#39;] = (8, 6)  # \u8bbe\u7f6e\u56fe\u5f62\u5927\u5c0f<\/p>\n<p>plt.rcParams[&#39;lines.linewidth&#39;] = 2  # \u8bbe\u7f6e\u7ebf\u5bbd<\/p>\n<p>plt.rcParams[&#39;lines.color&#39;] = &#39;b&#39;  # \u8bbe\u7f6e\u7ebf\u989c\u8272<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8c03\u6574\u8fd9\u4e9b\u53c2\u6570\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u56fe\u5f62\u7684\u5916\u89c2\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5b89\u88c5\u5b57\u4f53\u5e93<\/p>\n<\/p>\n<p><p>\u5982\u679c\u7cfb\u7edf\u4e2d\u6ca1\u6709\u5408\u9002\u7684\u4e2d\u6587\u5b57\u4f53\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u5b57\u4f53\u5e93\u6765\u89e3\u51b3\u3002\u5e38\u7528\u7684\u4e2d\u6587\u5b57\u4f53\u5e93\u5982SimHei\u3001Microsoft YaHei\u7b49\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u5b57\u4f53\u6587\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\u9700\u8981\u5728\u7f51\u4e0a\u4e0b\u8f7d\u6240\u9700\u7684\u5b57\u4f53\u6587\u4ef6\uff08\u901a\u5e38\u4e3a<code>.ttf<\/code>\u6216<code>.otf<\/code>\u683c\u5f0f\uff09\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b57\u4f53\u4e0b\u8f7d\u7f51\u7ad9\u83b7\u53d6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5c06\u5b57\u4f53\u6587\u4ef6\u590d\u5236\u5230\u7cfb\u7edf\u5b57\u4f53\u76ee\u5f55<\/strong><\/p>\n<\/p>\n<p><p>\u5c06\u4e0b\u8f7d\u7684\u5b57\u4f53\u6587\u4ef6\u590d\u5236\u5230\u7cfb\u7edf\u7684\u5b57\u4f53\u76ee\u5f55\u4e2d\uff1a<\/p>\n<\/p>\n<ul>\n<li>Windows\u7cfb\u7edf\uff1a<code>C:\\Windows\\Fonts<\/code><\/li>\n<li>macOS\u7cfb\u7edf\uff1a<code>\/Library\/Fonts<\/code> \u6216 <code>~\/Library\/Fonts<\/code><\/li>\n<li>Linux\u7cfb\u7edf\uff1a\u901a\u5e38\u4e3a <code>\/usr\/share\/fonts<\/code> \u6216 <code>~\/.fonts<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u91cd\u542fPython\u73af\u5883<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b57\u4f53\u540e\uff0c\u9700\u8981\u91cd\u542fPython\u73af\u5883\uff0c\u4ee5\u4fbfmatplotlib\u80fd\u591f\u8bc6\u522b\u65b0\u5b89\u88c5\u7684\u5b57\u4f53\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u786e\u4fdd\u5b57\u4f53\u6587\u4ef6\u8def\u5f84\u6b63\u786e<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u6307\u5b9a\u5b57\u4f53\u6587\u4ef6\u8def\u5f84\u4ee5\u786e\u4fddmatplotlib\u80fd\u591f\u6b63\u786e\u52a0\u8f7d\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528FontProperties\u6307\u5b9a\u5b57\u4f53<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528matplotlib\u7684<code>FontProperties<\/code>\u7c7b\u624b\u52a8\u6307\u5b9a\u5b57\u4f53\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from matplotlib.font_manager import FontProperties<\/p>\n<p>font_path = &#39;path\/to\/your\/font.ttf&#39;  # \u5b57\u4f53\u6587\u4ef6\u8def\u5f84<\/p>\n<p>font_prop = FontProperties(fname=font_path)<\/p>\n<p>plt.title(&#39;\u793a\u4f8b\u56fe&#39;, fontproperties=font_prop)<\/p>\n<p>plt.xlabel(&#39;X\u8f74&#39;, fontproperties=font_prop)<\/p>\n<p>plt.ylabel(&#39;Y\u8f74&#39;, fontproperties=font_prop)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u5b57\u4f53\u6587\u4ef6\u8def\u5f84<\/strong><\/p>\n<\/p>\n<p><p>\u786e\u4fdd\u6307\u5b9a\u7684\u5b57\u4f53\u6587\u4ef6\u8def\u5f84\u6b63\u786e\u65e0\u8bef\uff0c\u4e14\u5b57\u4f53\u6587\u4ef6\u80fd\u591f\u88ab\u8bfb\u53d6\u3002\u5982\u679c\u8def\u5f84\u9519\u8bef\u6216\u5b57\u4f53\u6587\u4ef6\u635f\u574f\uff0c\u53ef\u80fd\u5bfc\u81f4\u65e0\u6cd5\u663e\u793a\u6c49\u5b57\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u89e3\u51b3Python\u4f5c\u56fe\u4e2d\u663e\u793a\u6c49\u5b57\u7684\u95ee\u9898\uff0c\u786e\u4fdd\u56fe\u8868\u7684\u53ef\u8bfb\u6027\u548c\u7f8e\u89c2\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4f5c\u56fe\u65f6\u5982\u4f55\u5904\u7406\u6c49\u5b57\u663e\u793a\u95ee\u9898\uff1f<\/strong><br \/>\u5728Python\u4f5c\u56fe\u4e2d\uff0c\u5904\u7406\u6c49\u5b57\u7684\u663e\u793a\u95ee\u9898\u901a\u5e38\u6d89\u53ca\u5230\u5b57\u4f53\u8bbe\u7f6e\u3002\u53ef\u4ee5\u4f7f\u7528Matplotlib\u5e93\uff0c\u901a\u8fc7\u6307\u5b9a\u652f\u6301\u6c49\u5b57\u7684\u5b57\u4f53\u8def\u5f84\u6765\u89e3\u51b3\u6b64\u95ee\u9898\u3002\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u6709\u5408\u9002\u7684\u4e2d\u6587\u5b57\u4f53\u6587\u4ef6\uff08\u5982SimHei.ttf\u6216Microsoft YaHei.ttf\uff09\uff0c\u7136\u540e\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e\u5b57\u4f53\uff0c\u6bd4\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\nfrom matplotlib.font_manager import FontProperties\n\nfont = FontProperties(fname=&#39;\u8def\u5f84\/\u5230\/\u4f60\u7684\/\u5b57\u4f53.ttf&#39;, size=14)\nplt.title(&#39;\u4f60\u7684\u6807\u9898&#39;, fontproperties=font)\nplt.xlabel(&#39;X\u8f74\u6807\u7b7e&#39;, fontproperties=font)\nplt.ylabel(&#39;Y\u8f74\u6807\u7b7e&#39;, fontproperties=font)\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u80fd\u5728\u56fe\u8868\u4e2d\u6b63\u5e38\u663e\u793a\u6c49\u5b57\u4e86\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u7ed8\u56fe\u4e2d\u907f\u514d\u6c49\u5b57\u4e71\u7801\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u8981\u907f\u514d\u6c49\u5b57\u4e71\u7801\uff0c\u786e\u4fdd\u4f7f\u7528\u7684\u5b57\u4f53\u6587\u4ef6\u652f\u6301\u4e2d\u6587\u5b57\u7b26\u3002\u540c\u65f6\uff0c\u53ef\u4ee5\u5728\u7ed8\u56fe\u524d\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53\uff0c\u4ee5\u4fbf\u6240\u6709\u56fe\u5f62\u90fd\u80fd\u6b63\u786e\u663e\u793a\u6c49\u5b57\u3002\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u4ee3\u7801\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\nplt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;]  # \u6307\u5b9a\u9ed8\u8ba4\u5b57\u4f53\u4e3a\u9ed1\u4f53\nplt.rcParams[&#39;axes.unicode_minus&#39;] = False  # \u6b63\u5e38\u663e\u793a\u8d1f\u53f7\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u6240\u6709\u540e\u7eed\u7684\u56fe\u5f62\u90fd\u5c06\u4f7f\u7528\u6307\u5b9a\u7684\u5b57\u4f53\uff0c\u4ece\u800c\u907f\u514d\u4e86\u4e71\u7801\u95ee\u9898\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u4f5c\u56fe\u65f6\u5982\u4f55\u8c03\u6574\u6c49\u5b57\u7684\u5927\u5c0f\u548c\u6837\u5f0f\uff1f<\/strong><br \/>\u5728Python\u4f5c\u56fe\u4e2d\uff0c\u8c03\u6574\u6c49\u5b57\u7684\u5927\u5c0f\u548c\u6837\u5f0f\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5b57\u4f53\u5c5e\u6027\u6765\u5b9e\u73b0\u3002\u53ef\u4ee5\u5728\u7ed8\u5236\u6807\u9898\u3001\u6807\u7b7e\u53ca\u56fe\u4f8b\u65f6\uff0c\u4f7f\u7528<code>fontsize<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u5b57\u4f53\u5927\u5c0f\uff0c\u540c\u65f6\u901a\u8fc7<code>fontproperties<\/code>\u6765\u9009\u62e9\u4e0d\u540c\u7684\u5b57\u4f53\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">plt.title(&#39;\u56fe\u8868\u6807\u9898&#39;, fontsize=18, fontproperties=font)  # \u8bbe\u7f6e\u6807\u9898\u5927\u5c0f\u548c\u5b57\u4f53\nplt.xlabel(&#39;X\u8f74&#39;, fontsize=14, fontproperties=font)  # \u8bbe\u7f6eX\u8f74\u6807\u7b7e\nplt.ylabel(&#39;Y\u8f74&#39;, fontsize=14, fontproperties=font)  # \u8bbe\u7f6eY\u8f74\u6807\u7b7e\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u8ba9\u4f60\u5728\u56fe\u8868\u4e2d\u7075\u6d3b\u5730\u8c03\u6574\u6c49\u5b57\u7684\u663e\u793a\u6548\u679c\uff0c\u63d0\u5347\u6574\u4f53\u53ef\u8bfb\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e00\u3001\u5728Python\u4f5c\u56fe\u4e2d\u663e\u793a\u6c49\u8bed\u7684\u65b9\u6cd5 \u5728Python\u4e2d\u4f5c\u56fe\u663e\u793a\u6c49\u8bed\uff0c\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u6cd5\uff1a\u8bbe\u7f6e\u5b57\u4f53\u3001\u4f7f\u7528mat [&hellip;]","protected":false},"author":3,"featured_media":1000985,"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\/1000960"}],"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=1000960"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1000960\/revisions"}],"predecessor-version":[{"id":1000989,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1000960\/revisions\/1000989"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1000985"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1000960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1000960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1000960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}