{"id":1156988,"date":"2025-01-13T18:23:02","date_gmt":"2025-01-13T10:23:02","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1156988.html"},"modified":"2025-01-13T18:23:04","modified_gmt":"2025-01-13T10:23:04","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%bb%98%e5%88%b6%e4%ba%91%e5%9b%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1156988.html","title":{"rendered":"\u5982\u4f55\u7528python\u7ed8\u5236\u4e91\u56fe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25195327\/68382673-efed-4b0a-8eb6-c0eb71e4bfa3.webp\" alt=\"\u5982\u4f55\u7528python\u7ed8\u5236\u4e91\u56fe\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u7ed8\u5236\u4e91\u56fe\uff0c\u53ef\u4ee5\u901a\u8fc7<\/strong>\u3001<strong>\u5b89\u88c5wordcloud\u5e93<\/strong>\u3001<strong>\u51c6\u5907\u6587\u672c\u6570\u636e<\/strong>\u3001<strong>\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61<\/strong>\u3001<strong>\u7ed8\u5236\u5e76\u663e\u793a\u8bcd\u4e91<\/strong>\u3002\u5176\u4e2d\uff0c\u6700\u91cd\u8981\u7684\u4e00\u6b65\u662f\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61\uff0c\u8fd9\u4e00\u6b65\u51b3\u5b9a\u4e86\u4e91\u56fe\u7684\u6574\u4f53\u6548\u679c\u3002\u901a\u8fc7\u8c03\u6574\u5404\u79cd\u53c2\u6570\uff0c\u53ef\u4ee5\u5b9a\u5236\u51fa\u7b26\u5408\u9700\u6c42\u7684\u8bcd\u4e91\u56fe\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5wordcloud\u5e93<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Python\u7ed8\u5236\u8bcd\u4e91\u4e4b\u524d\uff0c\u9700\u8981\u5b89\u88c5<code>wordcloud<\/code>\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install wordcloud<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u5b89\u88c5<code>matplotlib<\/code>\u5e93\u7528\u4e8e\u663e\u793a\u8bcd\u4e91\u56fe\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e24\u4e2a\u5e93\u662f\u7ed8\u5236\u8bcd\u4e91\u56fe\u7684\u57fa\u7840\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u51c6\u5907\u6587\u672c\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u7ed8\u5236\u8bcd\u4e91\u9700\u8981\u63d0\u4f9b\u6587\u672c\u6570\u636e\u3002\u53ef\u4ee5\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6587\u672c\u6570\u636e\uff0c\u4e5f\u53ef\u4ee5\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6587\u672c\u3002\u4ee5\u4e0b\u662f\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6587\u672c\u6570\u636e\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;example.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    text = file.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u6587\u672c\u6570\u636e\u5b58\u50a8\u5728\u5b57\u7b26\u4e32\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u6587\u672c\uff0c\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u6587\u672c\uff0c\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u6587\u672c&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61\u662f\u7ed8\u5236\u8bcd\u4e91\u56fe\u7684\u6838\u5fc3\u6b65\u9aa4\u3002\u5728\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u8bb8\u591a\u53c2\u6570\uff0c\u5982\u5b57\u4f53\u3001\u80cc\u666f\u989c\u8272\u3001\u6700\u5927\u8bcd\u6570\u7b49\uff0c\u4ee5\u5b9a\u5236\u8bcd\u4e91\u56fe\u7684\u5916\u89c2\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wordcloud import WordCloud<\/p>\n<h2><strong>\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61<\/strong><\/h2>\n<p>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>    colormap=&#39;viridis&#39;<\/p>\n<p>).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4ee5\u4e0a\u793a\u4f8b\u4e2d\uff0c\u8bbe\u7f6e\u4e86\u8bcd\u4e91\u56fe\u7684\u5bbd\u5ea6\u3001\u9ad8\u5ea6\u3001\u80cc\u666f\u989c\u8272\u3001\u6700\u5927\u8bcd\u6570\u548c\u989c\u8272\u6620\u5c04\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7ed8\u5236\u5e76\u663e\u793a\u8bcd\u4e91<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u5c06\u8bcd\u4e91\u56fe\u7ed8\u5236\u5e76\u663e\u793a\u51fa\u6765\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u7ed8\u5236\u8bcd\u4e91\u56fe<\/strong><\/h2>\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<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ee3\u7801\u4f7f\u7528<code>plt.imshow<\/code>\u51fd\u6570\u7ed8\u5236\u8bcd\u4e91\u56fe\uff0c\u5e76\u4f7f\u7528<code>plt.axis(&#39;off&#39;)<\/code>\u5173\u95ed\u5750\u6807\u8f74\uff0c\u4f7f\u8bcd\u4e91\u56fe\u66f4\u52a0\u7f8e\u89c2\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5b9a\u5236\u8bcd\u4e91\u56fe<\/h3>\n<\/p>\n<p><p>\u8bcd\u4e91\u56fe\u7684\u5916\u89c2\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5404\u79cd\u53c2\u6570\u8fdb\u884c\u5b9a\u5236\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u53c2\u6570\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>font_path<\/code>\uff1a\u6307\u5b9a\u5b57\u4f53\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/li>\n<li><code>width<\/code>\uff1a\u8bcd\u4e91\u56fe\u7684\u5bbd\u5ea6\u3002<\/li>\n<li><code>height<\/code>\uff1a\u8bcd\u4e91\u56fe\u7684\u9ad8\u5ea6\u3002<\/li>\n<li><code>background_color<\/code>\uff1a\u80cc\u666f\u989c\u8272\u3002<\/li>\n<li><code>max_words<\/code>\uff1a\u6700\u5927\u8bcd\u6570\u3002<\/li>\n<li><code>colormap<\/code>\uff1a\u989c\u8272\u6620\u5c04\u3002<\/li>\n<li><code>mask<\/code>\uff1a\u8bcd\u4e91\u56fe\u7684\u5f62\u72b6\u906e\u7f69\u3002<\/li>\n<li><code>contour_color<\/code>\uff1a\u8f6e\u5ed3\u989c\u8272\u3002<\/li>\n<li><code>contour_width<\/code>\uff1a\u8f6e\u5ed3\u5bbd\u5ea6\u3002<\/li>\n<\/ul>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5305\u542b\u66f4\u591a\u53c2\u6570\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wordcloud import WordCloud<\/p>\n<p>import numpy as np<\/p>\n<p>from PIL import Image<\/p>\n<h2><strong>\u8bfb\u53d6\u5f62\u72b6\u906e\u7f69<\/strong><\/h2>\n<p>mask = np.array(Image.open(&#39;mask.png&#39;))<\/p>\n<p>wordcloud = WordCloud(<\/p>\n<p>    font_path=&#39;path\/to\/font.ttf&#39;,<\/p>\n<p>    width=800, <\/p>\n<p>    height=400, <\/p>\n<p>    background_color=&#39;black&#39;, <\/p>\n<p>    max_words=300, <\/p>\n<p>    colormap=&#39;plasma&#39;, <\/p>\n<p>    mask=mask,<\/p>\n<p>    contour_color=&#39;white&#39;,<\/p>\n<p>    contour_width=3<\/p>\n<p>).generate(text)<\/p>\n<p>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;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4ee5\u4e0a\u793a\u4f8b\u4e2d\uff0c\u8bcd\u4e91\u56fe\u4f7f\u7528\u4e86\u81ea\u5b9a\u4e49\u5b57\u4f53\u3001\u80cc\u666f\u989c\u8272\u3001\u989c\u8272\u6620\u5c04\u548c\u5f62\u72b6\u906e\u7f69\uff0c\u5e76\u6dfb\u52a0\u4e86\u767d\u8272\u8f6e\u5ed3\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5904\u7406\u6587\u672c\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5728\u751f\u6210\u8bcd\u4e91\u4e4b\u524d\uff0c\u9700\u8981\u5bf9\u6587\u672c\u6570\u636e\u8fdb\u884c\u5904\u7406\u3002\u53ef\u4ee5\u4f7f\u7528<code>jieba<\/code>\u5e93\u5bf9\u4e2d\u6587\u6587\u672c\u8fdb\u884c\u5206\u8bcd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u6587\u672c\uff0c\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u6587\u672c\uff0c\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u6587\u672c&quot;<\/p>\n<p>text = &quot; &quot;.join(jieba.cut(text))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bf9\u4e8e\u82f1\u6587\u6587\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528<code>nltk<\/code>\u5e93\u8fdb\u884c\u9884\u5904\u7406\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import nltk<\/p>\n<p>from nltk.corpus import stopwords<\/p>\n<p>nltk.download(&#39;punkt&#39;)<\/p>\n<p>nltk.download(&#39;stopwords&#39;)<\/p>\n<p>text = &quot;This is a test text. This is a test text. This is a test text.&quot;<\/p>\n<p>words = nltk.word_tokenize(text)<\/p>\n<p>words = [word for word in words if word.isalnum()]<\/p>\n<p>stop_words = set(stopwords.words(&#39;english&#39;))<\/p>\n<p>words = [word for word in words if word.lower() not in stop_words]<\/p>\n<p>text = &quot; &quot;.join(words)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u9884\u5904\u7406\u6b65\u9aa4\u6709\u52a9\u4e8e\u63d0\u9ad8\u8bcd\u4e91\u56fe\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u4fdd\u5b58\u8bcd\u4e91\u56fe<\/h3>\n<\/p>\n<p><p>\u7ed8\u5236\u7684\u8bcd\u4e91\u56fe\u53ef\u4ee5\u4fdd\u5b58\u4e3a\u56fe\u50cf\u6587\u4ef6\uff0c\u4ee5\u4fbf\u540e\u7eed\u4f7f\u7528\u3002\u53ef\u4ee5\u4f7f\u7528<code>wordcloud<\/code>\u5e93\u7684<code>to_file<\/code>\u65b9\u6cd5\u4fdd\u5b58\u8bcd\u4e91\u56fe\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">wordcloud.to_file(&#39;wordcloud.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u7efc\u5408\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7efc\u5408\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u4ece\u6587\u672c\u6587\u4ef6\u8bfb\u53d6\u6587\u672c\u6570\u636e\u3001\u751f\u6210\u8bcd\u4e91\u56fe\u5e76\u4fdd\u5b58\u4e3a\u56fe\u50cf\u6587\u4ef6\u7684\u5b8c\u6574\u8fc7\u7a0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>from wordcloud import WordCloud<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u8bfb\u53d6\u6587\u672c\u6570\u636e<\/strong><\/h2>\n<p>with open(&#39;example.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    text = file.read()<\/p>\n<h2><strong>\u5bf9\u4e2d\u6587\u6587\u672c\u8fdb\u884c\u5206\u8bcd<\/strong><\/h2>\n<p>text = &quot; &quot;.join(jieba.cut(text))<\/p>\n<h2><strong>\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61<\/strong><\/h2>\n<p>wordcloud = WordCloud(<\/p>\n<p>    font_path=&#39;path\/to\/font.ttf&#39;,<\/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>    colormap=&#39;viridis&#39;<\/p>\n<p>).generate(text)<\/p>\n<h2><strong>\u7ed8\u5236\u8bcd\u4e91\u56fe<\/strong><\/h2>\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;)<\/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>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u8f7b\u677e\u7ed8\u5236\u51fa\u7f8e\u89c2\u7684\u8bcd\u4e91\u56fe\uff0c\u5e76\u6839\u636e\u9700\u6c42\u8fdb\u884c\u5b9a\u5236\u548c\u4fdd\u5b58\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u6765\u7ed8\u5236\u4e91\u56fe\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u7ed8\u5236\u4e91\u56fe\u65f6\uff0c\u9009\u62e9\u6570\u636e\u662f\u5173\u952e\u3002\u4e91\u56fe\u901a\u5e38\u7528\u4e8e\u8868\u793a\u67d0\u79cd\u53d8\u91cf\u5728\u5730\u7406\u7a7a\u95f4\u4e0a\u7684\u5206\u5e03\uff0c\u56e0\u6b64\u60a8\u9700\u8981\u4e00\u4e2a\u5305\u542b\u5730\u7406\u5750\u6807\uff08\u7ecf\u7eac\u5ea6\uff09\u548c\u76f8\u5e94\u6570\u503c\u7684\u6570\u636e\u96c6\u3002\u5e38\u89c1\u7684\u6570\u636e\u6765\u6e90\u5305\u62ec\u6c14\u8c61\u6570\u636e\u3001\u73af\u5883\u76d1\u6d4b\u6570\u636e\u6216\u4efb\u4f55\u5177\u6709\u7a7a\u95f4\u5206\u5e03\u7279\u5f81\u7684\u6570\u636e\u96c6\u3002\u786e\u4fdd\u6570\u636e\u6e05\u6d17\u5e72\u51c0\uff0c\u7f3a\u5931\u503c\u5f97\u5230\u5904\u7406\uff0c\u4ee5\u4fbf\u751f\u6210\u66f4\u51c6\u786e\u7684\u4e91\u56fe\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u7ed8\u5236\u4e91\u56fe\u9700\u8981\u54ea\u4e9b\u5e93\uff1f<\/strong><br \/>\u7ed8\u5236\u4e91\u56fe\u5e38\u7528\u7684Python\u5e93\u5305\u62ecMatplotlib\u3001NumPy\u548cBasemap\u6216Cartopy\u3002Matplotlib\u8d1f\u8d23\u7ed8\u56fe\u7684\u57fa\u7840\u529f\u80fd\uff0cNumPy\u7528\u4e8e\u5904\u7406\u6570\u636e\uff0cBasemap\u548cCartopy\u5219\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5730\u7406\u7ed8\u56fe\u80fd\u529b\u3002\u5b89\u88c5\u8fd9\u4e9b\u5e93\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u4eec\u63d0\u4f9b\u7684\u529f\u80fd\u6765\u521b\u5efa\u591a\u79cd\u98ce\u683c\u7684\u4e91\u56fe\uff0c\u6ee1\u8db3\u4e0d\u540c\u7684\u53ef\u89c6\u5316\u9700\u6c42\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f18\u5316\u4e91\u56fe\u7684\u53ef\u89c6\u5316\u6548\u679c\uff1f<\/strong><br \/>\u4f18\u5316\u4e91\u56fe\u7684\u53ef\u89c6\u5316\u6548\u679c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\u3002\u9009\u62e9\u9002\u5f53\u7684\u989c\u8272\u6620\u5c04\u662f\u5173\u952e\uff0c\u5b83\u80fd\u6709\u6548\u5c55\u793a\u6570\u636e\u53d8\u5316\u3002\u540c\u65f6\uff0c\u8c03\u6574\u56fe\u5f62\u7684\u5206\u8fa8\u7387\u548c\u5927\u5c0f\u4e5f\u4f1a\u5f71\u54cd\u53ef\u89c6\u5316\u6548\u679c\u3002\u6dfb\u52a0\u56fe\u4f8b\u3001\u6807\u9898\u548c\u5750\u6807\u8f74\u6807\u7b7e\u7b49\u5143\u7d20\uff0c\u6709\u52a9\u4e8e\u63d0\u9ad8\u56fe\u5f62\u7684\u53ef\u8bfb\u6027\u3002\u6b64\u5916\uff0c\u8003\u8651\u4f7f\u7528\u900f\u660e\u5ea6\u6216\u9634\u5f71\u6548\u679c\uff0c\u53ef\u4ee5\u4f7f\u4e91\u56fe\u66f4\u52a0\u751f\u52a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u7ed8\u5236\u4e91\u56fe\uff0c\u53ef\u4ee5\u901a\u8fc7\u3001\u5b89\u88c5wordcloud\u5e93\u3001\u51c6\u5907\u6587\u672c\u6570\u636e\u3001\u751f\u6210\u8bcd\u4e91\u5bf9\u8c61\u3001\u7ed8\u5236\u5e76\u663e\u793a\u8bcd\u4e91\u3002\u5176\u4e2d [&hellip;]","protected":false},"author":3,"featured_media":1156993,"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\/1156988"}],"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=1156988"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156988\/revisions"}],"predecessor-version":[{"id":1156996,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156988\/revisions\/1156996"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1156993"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1156988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1156988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1156988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}