{"id":967446,"date":"2024-12-27T04:57:14","date_gmt":"2024-12-26T20:57:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/967446.html"},"modified":"2024-12-27T04:57:16","modified_gmt":"2024-12-26T20:57:16","slug":"python-%e5%a6%82%e4%bd%95%e7%94%9f%e6%88%90%e8%af%8d%e4%ba%91%e5%9b%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/967446.html","title":{"rendered":"python \u5982\u4f55\u751f\u6210\u8bcd\u4e91\u56fe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182736\/9ba4534a-609c-461c-90b1-7f990d38fe7b.webp\" alt=\"python \u5982\u4f55\u751f\u6210\u8bcd\u4e91\u56fe\" \/><\/p>\n<p><p> Python\u751f\u6210\u8bcd\u4e91\u56fe\u7684\u6838\u5fc3\u6b65\u9aa4\u5305\u62ec<strong>\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u3001\u51c6\u5907\u6587\u672c\u6570\u636e\u3001\u521b\u5efa\u8bcd\u4e91\u5bf9\u8c61\u3001\u914d\u7f6e\u8bcd\u4e91\u53c2\u6570\u3001\u6e32\u67d3\u5e76\u4fdd\u5b58\u56fe\u50cf<\/strong>\u3002\u5176\u4e2d\uff0c\u5b89\u88c5\u548c\u4f7f\u7528WordCloud\u5e93\u662f\u5173\u952e\u6b65\u9aa4\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63cf\u8ff0\u6bcf\u4e00\u6b65\u7684\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210\u8bcd\u4e91\u56fe\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u51e0\u4e2aPython\u5e93\uff1aWordCloud\u3001matplotlib\u548cnumpy\u3002WordCloud\u5e93\u7528\u4e8e\u751f\u6210\u8bcd\u4e91\uff0cmatplotlib\u7528\u4e8e\u5c55\u793a\u751f\u6210\u7684\u8bcd\u4e91\u56fe\uff0cnumpy\u5219\u7528\u4e8e\u5904\u7406\u6570\u636e\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8fd9\u4e9b\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install wordcloud matplotlib numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u51c6\u5907\u6587\u672c\u6570\u636e<\/p>\n<\/p>\n<p><p>\u751f\u6210\u8bcd\u4e91\u56fe\u7684\u57fa\u7840\u662f\u6587\u672c\u6570\u636e\u3002\u6587\u672c\u6570\u636e\u53ef\u4ee5\u6765\u81ea\u6587\u4ef6\u3001\u7f51\u7edc\u722c\u866b\u3001API\u63a5\u53e3\u7b49\u591a\u79cd\u6e20\u9053\u3002\u5728\u8fd9\u4e2a\u6b65\u9aa4\u4e2d\uff0c\u4f60\u9700\u8981\u5c06\u6587\u672c\u6570\u636e\u6574\u7406\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u683c\u5f0f\uff0c\u4ee5\u4fbf\u540e\u7eed\u4f7f\u7528\u3002\u6bd4\u5982\uff0c\u4f60\u53ef\u4ee5\u4ece\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;text.txt&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;) as file:<\/p>\n<p>    text = file.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u521b\u5efa\u8bcd\u4e91\u5bf9\u8c61<\/p>\n<\/p>\n<p><p>\u4f7f\u7528WordCloud\u5e93\u521b\u5efa\u4e00\u4e2a\u8bcd\u4e91\u5bf9\u8c61\u662f\u751f\u6210\u8bcd\u4e91\u7684\u6838\u5fc3\u6b65\u9aa4\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u914d\u7f6e\u8bcd\u4e91\u7684\u5404\u79cd\u53c2\u6570\uff0c\u5982\u80cc\u666f\u989c\u8272\u3001\u6700\u5927\u8bcd\u6570\u3001\u5b57\u4f53\u5927\u5c0f\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u8bcd\u4e91\u5bf9\u8c61\u521b\u5efa\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wordcloud import WordCloud<\/p>\n<p>wordcloud = WordCloud(width=800, height=400, background_color=&#39;white&#39;).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u914d\u7f6e\u8bcd\u4e91\u53c2\u6570<\/p>\n<\/p>\n<p><p>WordCloud\u5e93\u63d0\u4f9b\u4e86\u591a\u79cd\u53c2\u6570\u6765\u5b9a\u5236\u8bcd\u4e91\u56fe\u7684\u5916\u89c2\u548c\u884c\u4e3a\u3002<strong>\u5b57\u4f53\u8def\u5f84\u3001\u80cc\u666f\u989c\u8272\u3001\u6700\u5927\u8bcd\u6570\u3001\u505c\u7528\u8bcd<\/strong>\u7b49\u90fd\u662f\u5e38\u7528\u7684\u53c2\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u53c2\u6570\u914d\u7f6e\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>font_path<\/strong>: \u6307\u5b9a\u5b57\u4f53\u8def\u5f84\uff0c\u4ee5\u652f\u6301\u751f\u6210\u4e2d\u6587\u8bcd\u4e91\u3002<\/li>\n<li><strong>background_color<\/strong>: \u8bbe\u7f6e\u8bcd\u4e91\u56fe\u7684\u80cc\u666f\u989c\u8272\uff0c\u5982\u767d\u8272\u6216\u9ed1\u8272\u3002<\/li>\n<li><strong>max_words<\/strong>: \u6307\u5b9a\u8bcd\u4e91\u56fe\u4e2d\u663e\u793a\u7684\u6700\u5927\u8bcd\u6570\u3002<\/li>\n<li><strong>stopwords<\/strong>: \u8bbe\u7f6e\u4e0d\u5e0c\u671b\u5728\u8bcd\u4e91\u4e2d\u51fa\u73b0\u7684\u505c\u7528\u8bcd\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">wordcloud = WordCloud(<\/p>\n<p>    width=800,<\/p>\n<p>    height=400,<\/p>\n<p>    background_color=&#39;white&#39;,<\/p>\n<p>    max_words=200,<\/p>\n<p>    stopwords=set(STOPWORDS)<\/p>\n<p>).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u6e32\u67d3\u5e76\u4fdd\u5b58\u56fe\u50cf<\/p>\n<\/p>\n<p><p>\u521b\u5efa\u597d\u8bcd\u4e91\u5bf9\u8c61\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528matplotlib\u5e93\u5c06\u8bcd\u4e91\u56fe\u6e32\u67d3\u51fa\u6765\uff0c\u5e76\u4fdd\u5b58\u4e3a\u56fe\u50cf\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528matplotlib\u5c55\u793a\u548c\u4fdd\u5b58\u8bcd\u4e91\u56fe\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>plt.figure(figsize=(10, 5))<\/p>\n<p>plt.imshow(wordcloud, interpolation=&#39;bilinear&#39;)<\/p>\n<p>plt.axis(&#39;off&#39;)  # \u5173\u95ed\u5750\u6807\u8f74<\/p>\n<p>plt.show()<\/p>\n<h2><strong>\u4fdd\u5b58\u8bcd\u4e91\u56fe<\/strong><\/h2>\n<p>wordcloud.to_file(&#39;wordcloud.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u6df1\u5165\u7406\u89e3\u8bcd\u4e91\u751f\u6210<\/p>\n<\/p>\n<p><p>1\u3001\u8bcd\u4e91\u7684\u751f\u6210\u539f\u7406<\/p>\n<\/p>\n<p><p>\u8bcd\u4e91\u56fe\u901a\u8fc7\u5206\u6790\u6587\u672c\u6570\u636e\u4e2d\u7684\u8bcd\u9891\uff0c\u5c06\u8bcd\u9891\u9ad8\u7684\u8bcd\u4ee5\u8f83\u5927\u7684\u5b57\u4f53\u663e\u793a\uff0c\u800c\u8bcd\u9891\u4f4e\u7684\u8bcd\u5219\u4ee5\u8f83\u5c0f\u7684\u5b57\u4f53\u663e\u793a\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u7528\u6237\u53ef\u4ee5\u5feb\u901f\u8bc6\u522b\u51fa\u6587\u672c\u4e2d\u6700\u91cd\u8981\u7684\u5173\u952e\u8bcd\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u5904\u7406\u4e2d\u6587\u6587\u672c<\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210\u4e2d\u6587\u8bcd\u4e91\u65f6\uff0c\u9700\u8981\u7279\u522b\u6ce8\u610f\u5206\u8bcd\u95ee\u9898\u3002Python\u7684jieba\u5e93\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u4e2d\u6587\u5206\u8bcd\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5c06\u4e2d\u6587\u6587\u672c\u5206\u8bcd\uff0c\u5e76\u5c06\u7ed3\u679c\u4f20\u9012\u7ed9WordCloud\u751f\u6210\u8bcd\u4e91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>text = &#39;\u8fd9\u662f\u4e00\u4e2a\u7528\u4e8e\u751f\u6210\u8bcd\u4e91\u7684\u4e2d\u6587\u6587\u672c\u793a\u4f8b\u3002&#39;<\/p>\n<p>word_list = jieba.cut(text, cut_all=False)<\/p>\n<p>text = &#39; &#39;.join(word_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3\u3001\u505c\u7528\u8bcd\u7684\u4f7f\u7528<\/p>\n<\/p>\n<p><p>\u505c\u7528\u8bcd\u662f\u6307\u5728\u6587\u672c\u5904\u7406\u4e2d\u4e0d\u9700\u8981\u5173\u6ce8\u7684\u8bcd\u6c47\uff0c\u5982\u201c\u7684\u201d\u3001\u201c\u5728\u201d\u3001\u201c\u662f\u201d\u7b49\u3002WordCloud\u5e93\u5141\u8bb8\u6211\u4eec\u901a\u8fc7stopwords\u53c2\u6570\u6307\u5b9a\u505c\u7528\u8bcd\uff0c\u4ee5\u63d0\u9ad8\u8bcd\u4e91\u7684\u8d28\u91cf\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><p>4\u3001\u5f62\u72b6\u5b9a\u5236<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u666e\u901a\u7684\u77e9\u5f62\u8bcd\u4e91\u56fe\uff0cWordCloud\u5e93\u8fd8\u652f\u6301\u751f\u6210\u7279\u5b9a\u5f62\u72b6\u7684\u8bcd\u4e91\u56fe\u3002\u53ef\u4ee5\u901a\u8fc7mask\u53c2\u6570\u6307\u5b9a\u4e00\u4e2a\u5f62\u72b6\u56fe\u50cf\uff0c\u8fd9\u6837\u751f\u6210\u7684\u8bcd\u4e91\u56fe\u5c06\u7b26\u5408\u56fe\u50cf\u7684\u5f62\u72b6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<p>import numpy as np<\/p>\n<p>mask = np.array(Image.open(&#39;shape.png&#39;))<\/p>\n<p>wordcloud = WordCloud(mask=mask).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e03\u3001\u5e94\u7528\u573a\u666f\u548c\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<p><p>1\u3001\u6587\u672c\u5206\u6790<\/p>\n<\/p>\n<p><p>\u8bcd\u4e91\u56fe\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6587\u672c\u5206\u6790\u9886\u57df\uff0c\u5982\u793e\u4ea4\u5a92\u4f53\u5206\u6790\u3001\u4ea7\u54c1\u8bc4\u8bba\u5206\u6790\u3001\u5e02\u573a\u8c03\u7814\u7b49\u3002\u901a\u8fc7\u8bcd\u4e91\u56fe\uff0c\u5206\u6790\u5e08\u53ef\u4ee5\u5feb\u901f\u8bc6\u522b\u51fa\u6587\u672c\u6570\u636e\u4e2d\u7684\u70ed\u95e8\u8bdd\u9898\u548c\u5173\u952e\u8bcd\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u6570\u636e\u53ef\u89c6\u5316<\/p>\n<\/p>\n<p><p>\u4f5c\u4e3a\u4e00\u79cd\u76f4\u89c2\u7684\u6570\u636e\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u8bcd\u4e91\u56fe\u53ef\u4ee5\u7528\u4e8e\u5c55\u793a\u6f14\u8bb2\u5185\u5bb9\u3001\u62a5\u544a\u7ed3\u8bba\u7b49\u3002\u901a\u8fc7\u5408\u7406\u914d\u7f6e\u8bcd\u4e91\u53c2\u6570\uff0c\u53ef\u4ee5\u5236\u4f5c\u51fa\u7f8e\u89c2\u4e14\u5bcc\u6709\u8868\u73b0\u529b\u7684\u8bcd\u4e91\u56fe\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u9009\u62e9\u5408\u9002\u7684\u505c\u7528\u8bcd<\/p>\n<\/p>\n<p><p>\u505c\u7528\u8bcd\u7684\u9009\u62e9\u5bf9\u8bcd\u4e91\u7684\u8d28\u91cf\u5f71\u54cd\u5f88\u5927\u3002\u5728\u751f\u6210\u8bcd\u4e91\u524d\uff0c\u5efa\u8bae\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\uff0c\u7cbe\u5fc3\u6311\u9009\u505c\u7528\u8bcd\u5217\u8868\uff0c\u4ee5\u786e\u4fdd\u8bcd\u4e91\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<p><p>4\u3001\u4f18\u5316\u8bcd\u4e91\u53c2\u6570<\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210\u8bcd\u4e91\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e0d\u65ad\u8c03\u6574\u53c2\u6570\uff08\u5982\u989c\u8272\u65b9\u6848\u3001\u5b57\u4f53\u5927\u5c0f\u3001\u5f62\u72b6\u7b49\uff09\uff0c\u6765\u4f18\u5316\u8bcd\u4e91\u7684\u89c6\u89c9\u6548\u679c\u3002\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684\u8bcd\u4e91\u914d\u7f6e\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u8be6\u7ec6\u4e86\u89e3\u4e86Python\u751f\u6210\u8bcd\u4e91\u56fe\u7684\u6b65\u9aa4\u548c\u6280\u5de7\u3002\u8bcd\u4e91\u56fe\u4f5c\u4e3a\u4e00\u79cd\u5f3a\u5927\u7684\u6587\u672c\u5206\u6790\u548c\u6570\u636e\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7406\u89e3\u548c\u5c55\u793a\u6587\u672c\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u751f\u6210\u8bcd\u4e91\u56fe\u9700\u8981\u54ea\u4e9bPython\u5e93\uff1f<\/strong><br \/>\u8981\u751f\u6210\u8bcd\u4e91\u56fe\uff0c\u60a8\u901a\u5e38\u9700\u8981\u5b89\u88c5\u51e0\u4e2aPython\u5e93\uff0c\u6700\u5e38\u7528\u7684\u662f<code>wordcloud<\/code>\u3001<code>matplotlib<\/code>\u548c<code>numpy<\/code>\u3002<code>wordcloud<\/code>\u5e93\u4e13\u95e8\u7528\u4e8e\u521b\u5efa\u8bcd\u4e91\uff0c\u800c<code>matplotlib<\/code>\u5219\u7528\u4e8e\u5c55\u793a\u56fe\u5f62\uff0c<code>numpy<\/code>\u6709\u52a9\u4e8e\u5904\u7406\u6570\u636e\u3002\u5982\u679c\u60a8\u5c1a\u672a\u5b89\u88c5\u8fd9\u4e9b\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff0c\u4f8b\u5982\uff1a<code>pip install wordcloud matplotlib numpy<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u51c6\u5907\u6587\u672c\u6570\u636e\u4ee5\u751f\u6210\u8bcd\u4e91\u56fe\uff1f<\/strong><br \/>\u751f\u6210\u8bcd\u4e91\u56fe\u4e4b\u524d\uff0c\u51c6\u5907\u6587\u672c\u6570\u636e\u662f\u5173\u952e\u6b65\u9aa4\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u6587\u672c\u6587\u4ef6\uff08\u5982.txt\u683c\u5f0f\uff09\u6216\u5b57\u7b26\u4e32\u6570\u636e\u3002\u786e\u4fdd\u6570\u636e\u5df2\u7ecf\u6e05\u6d17\uff0c\u53bb\u9664\u4e86\u65e0\u610f\u4e49\u7684\u505c\u7528\u8bcd\uff08\u4f8b\u5982\u201c\u7684\u201d\u3001\u201c\u662f\u201d\u7b49\uff09\uff0c\u5e76\u4e14\u6587\u672c\u683c\u5f0f\u5316\u826f\u597d\u3002\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>pandas<\/code>\u5e93\u6765\u5904\u7406CSV\u6216Excel\u683c\u5f0f\u7684\u6570\u636e\uff0c\u4ee5\u4fbf\u63d0\u53d6\u6587\u672c\u5217\u3002<\/p>\n<p><strong>\u5982\u4f55\u81ea\u5b9a\u4e49\u8bcd\u4e91\u56fe\u7684\u5916\u89c2\u548c\u98ce\u683c\uff1f<\/strong><br \/>\u8bcd\u4e91\u56fe\u7684\u5916\u89c2\u548c\u98ce\u683c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u591a\u4e2a\u53c2\u6570\u8fdb\u884c\u81ea\u5b9a\u4e49\u3002\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u5b57\u4f53\u3001\u80cc\u666f\u8272\u3001\u6700\u5927\u8bcd\u6570\u3001\u5f62\u72b6\u7b49\u3002\u4f8b\u5982\uff0c\u901a\u8fc7<code>wordcloud<\/code>\u5e93\u7684<code>WordCloud<\/code>\u7c7b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>font_path<\/code>\u6307\u5b9a\u5b57\u4f53\uff0c\u4f7f\u7528<code>background_color<\/code>\u8bbe\u7f6e\u80cc\u666f\u8272\uff0c\u4f7f\u7528<code>max_words<\/code>\u6765\u9650\u5236\u663e\u793a\u7684\u8bcd\u6570\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u901a\u8fc7\u63d0\u4f9b\u5f62\u72b6\u56fe\u50cf\uff08\u5982PNG\u6587\u4ef6\uff09\u6765\u521b\u5efa\u7279\u5b9a\u5f62\u72b6\u7684\u8bcd\u4e91\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u751f\u6210\u8bcd\u4e91\u56fe\u7684\u6838\u5fc3\u6b65\u9aa4\u5305\u62ec\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u3001\u51c6\u5907\u6587\u672c\u6570\u636e\u3001\u521b\u5efa\u8bcd\u4e91\u5bf9\u8c61\u3001\u914d\u7f6e\u8bcd\u4e91\u53c2\u6570\u3001\u6e32\u67d3\u5e76\u4fdd\u5b58\u56fe\u50cf\u3002\u5176 [&hellip;]","protected":false},"author":3,"featured_media":967451,"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\/967446"}],"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=967446"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/967446\/revisions"}],"predecessor-version":[{"id":967455,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/967446\/revisions\/967455"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/967451"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=967446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=967446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=967446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}