{"id":1029676,"date":"2024-12-31T11:10:23","date_gmt":"2024-12-31T03:10:23","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1029676.html"},"modified":"2024-12-31T11:10:26","modified_gmt":"2024-12-31T03:10:26","slug":"%e7%94%a8python%e5%81%9a%e8%af%8d%e4%ba%91%e5%a6%82%e4%bd%95%e5%af%bc%e5%85%a5%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1029676.html","title":{"rendered":"\u7528python\u505a\u8bcd\u4e91\u5982\u4f55\u5bfc\u5165\u6587\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/5e117472-a832-4140-8143-3e62bda2f0d9.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u7528python\u505a\u8bcd\u4e91\u5982\u4f55\u5bfc\u5165\u6587\u4ef6\" \/><\/p>\n<p><p> <strong>\u7528 Python \u505a\u8bcd\u4e91\u5e76\u5bfc\u5165\u6587\u4ef6\u7684\u65b9\u6cd5<\/strong><\/p>\n<\/p>\n<p><p><strong>\u7528Python\u505a\u8bcd\u4e91\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u6b65\u5b9e\u73b0\uff1a\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u3001\u51c6\u5907\u6587\u672c\u6570\u636e\u3001\u751f\u6210\u8bcd\u4e91\u548c\u5c55\u793a\u8bcd\u4e91\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\uff1a<\/p>\n<p>\u8981\u751f\u6210\u8bcd\u4e91\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5fc5\u8981\u7684Python\u5e93\uff0c\u5e38\u7528\u7684\u5e93\u5305\u62ec <code>wordcloud<\/code> \u548c <code>matplotlib<\/code>\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pip install wordcloud matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u51c6\u5907\u6587\u672c\u6570\u636e\uff1a<\/p>\n<p>\u6587\u672c\u6570\u636e\u53ef\u4ee5\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u3002\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u5305\u542b\u6587\u672c\u7684\u6587\u4ef6 <code>text.txt<\/code>\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>from wordcloud import WordCloud<\/p>\n<h2><strong>\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u5185\u5bb9<\/strong><\/h2>\n<p>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><strong>\u4e09\u3001\u751f\u6210\u8bcd\u4e91\uff1a<\/strong><\/p>\n<p>\u4f7f\u7528 <code>wordcloud<\/code> \u5e93\u751f\u6210\u8bcd\u4e91\u3002\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8bcd\u4e91\u7684\u5f62\u72b6\u3001\u989c\u8272\u7b49\u5c5e\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u751f\u6210\u8bcd\u4e91\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u751f\u6210\u8bcd\u4e91<\/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\u5c55\u793a\u8bcd\u4e91\uff1a<\/p>\n<p>\u4f7f\u7528 <code>matplotlib<\/code> \u5e93\u5c55\u793a\u751f\u6210\u7684\u8bcd\u4e91\u3002\u4ee5\u4e0b\u662f\u5c55\u793a\u8bcd\u4e91\u7684\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c55\u793a\u8bcd\u4e91<\/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<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93<\/h3>\n<\/p>\n<p><p>\u8981\u751f\u6210\u8bcd\u4e91\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5fc5\u8981\u7684Python\u5e93\uff0c\u5e38\u7528\u7684\u5e93\u5305\u62ec <code>wordcloud<\/code> \u548c <code>matplotlib<\/code>\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 matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u8fd9\u4e9b\u5e93\u540e\uff0c\u4fbf\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165\u8fd9\u4e9b\u5e93\u4ee5\u751f\u6210\u8bcd\u4e91\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u51c6\u5907\u6587\u672c\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u6587\u672c\u6570\u636e\u53ef\u4ee5\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u5305\u542b\u5927\u91cf\u6587\u672c\u7684\u6587\u4ef6\uff0c\u6bd4\u5982 <code>.txt<\/code> \u6587\u4ef6\u3002\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u5305\u542b\u6587\u672c\u7684\u6587\u4ef6 <code>text.txt<\/code>\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>from wordcloud import WordCloud<\/p>\n<h2><strong>\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u5185\u5bb9<\/strong><\/h2>\n<p>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>\u5728\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u65f6\uff0c\u786e\u4fdd\u6587\u4ef6\u7684\u7f16\u7801\u65b9\u5f0f\u4e0e\u8bfb\u53d6\u65b9\u6cd5\u4e00\u81f4\uff0c\u4ee5\u9632\u6b62\u51fa\u73b0\u4e71\u7801\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u751f\u6210\u8bcd\u4e91<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528 <code>wordcloud<\/code> \u5e93\u751f\u6210\u8bcd\u4e91\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8bcd\u4e91\u7684\u5f62\u72b6\u3001\u989c\u8272\u7b49\u5c5e\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u751f\u6210\u8bcd\u4e91\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u751f\u6210\u8bcd\u4e91<\/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>\u5728\u751f\u6210\u8bcd\u4e91\u65f6\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\u8bcd\u4e91\u7684\u5bbd\u5ea6\u3001\u9ad8\u5ea6\u548c\u80cc\u666f\u989c\u8272\u7b49\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u80cc\u666f\u989c\u8272\u8bbe\u7f6e\u4e3a\u9ed1\u8272\uff0c\u5c06\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u8c03\u6574\u4e3a\u5176\u4ed6\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5c55\u793a\u8bcd\u4e91<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528 <code>matplotlib<\/code> \u5e93\u5c55\u793a\u751f\u6210\u7684\u8bcd\u4e91\u3002\u4ee5\u4e0b\u662f\u5c55\u793a\u8bcd\u4e91\u7684\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c55\u793a\u8bcd\u4e91<\/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<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u5c31\u53ef\u4ee5\u751f\u6210\u5e76\u5c55\u793a\u8bcd\u4e91\u4e86\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6269\u5c55\u548c\u4f18\u5316\u7684\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f18\u5316\u8bcd\u4e91\u751f\u6210<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u505c\u7528\u8bcd\uff1a<\/strong><\/p>\n<p>\u505c\u7528\u8bcd\u662f\u6307\u5728\u751f\u6210\u8bcd\u4e91\u65f6\u4e0d\u5e0c\u671b\u5305\u542b\u7684\u5e38\u89c1\u8bcd\u6c47\uff0c\u5982\u201c\u7684\u201d\u3001\u201c\u662f\u201d\u7b49\u3002\u53ef\u4ee5\u81ea\u5b9a\u4e49\u505c\u7528\u8bcd\u5217\u8868\u4ee5\u63d0\u9ad8\u8bcd\u4e91\u7684\u8d28\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wordcloud import STOPWORDS<\/p>\n<p>stopwords = set(STOPWORDS)<\/p>\n<p>stopwords.update([&#39;\u7684&#39;, &#39;\u662f&#39;, &#39;\u548c&#39;])  # \u6dfb\u52a0\u81ea\u5b9a\u4e49\u505c\u7528\u8bcd<\/p>\n<p>wordcloud = WordCloud(width=800, height=400, background_color=&#39;white&#39;, stopwords=stopwords).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u8bcd\u4e91\u5f62\u72b6\uff1a<\/strong><\/p>\n<p>\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u5f62\u72b6\u56fe\u7247\u751f\u6210\u7279\u5b9a\u5f62\u72b6\u7684\u8bcd\u4e91\u3002\u9700\u8981\u5b89\u88c5 <code>Pillow<\/code> \u5e93\u6765\u5904\u7406\u56fe\u7247\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;mask.png&#39;))  # \u8bfb\u53d6\u5f62\u72b6\u56fe\u7247<\/p>\n<p>wordcloud = WordCloud(width=800, height=400, background_color=&#39;white&#39;, mask=mask, stopwords=stopwords).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u6574\u8bcd\u4e91\u989c\u8272\uff1a<\/strong><\/p>\n<p>\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8bcd\u4e91\u7684\u989c\u8272\u65b9\u6848\uff0c\u4f7f\u5176\u66f4\u52a0\u7b26\u5408\u89c6\u89c9\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wordcloud import ImageColorGenerator<\/p>\n<p>image_colors = ImageColorGenerator(mask)<\/p>\n<p>plt.figure(figsize=(10, 5))<\/p>\n<p>plt.imshow(wordcloud.recolor(color_func=image_colors), 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<\/li>\n<li>\n<p><strong>\u4fdd\u5b58\u8bcd\u4e91\u56fe\u7247\uff1a<\/strong><\/p>\n<p>\u53ef\u4ee5\u5c06\u751f\u6210\u7684\u8bcd\u4e91\u4fdd\u5b58\u4e3a\u56fe\u7247\u6587\u4ef6\uff0c\u4ee5\u4fbf\u540e\u7eed\u4f7f\u7528\u3002<\/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<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u5904\u7406\u5927\u6587\u672c\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5f53\u5904\u7406\u5927\u6587\u672c\u6570\u636e\u65f6\uff0c\u9700\u8981\u8003\u8651\u6587\u672c\u7684\u9884\u5904\u7406\u548c\u4f18\u5316\uff0c\u4ee5\u63d0\u9ad8\u8bcd\u4e91\u7684\u751f\u6210\u6548\u7387\u548c\u8d28\u91cf\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6587\u672c\u6e05\u6d17\uff1a<\/strong><\/p>\n<p>\u6e05\u6d17\u6587\u672c\u6570\u636e\uff0c\u5305\u62ec\u53bb\u9664\u7279\u6b8a\u5b57\u7b26\u3001\u6570\u5b57\u3001\u6807\u70b9\u7b26\u53f7\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = re.sub(r&#39;\\W+&#39;, &#39; &#39;, text)  # \u53bb\u9664\u975e\u5b57\u6bcd\u6570\u5b57\u5b57\u7b26<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5206\u8bcd\uff1a<\/strong><\/p>\n<p>\u5bf9\u4e8e\u4e2d\u6587\u6587\u672c\uff0c\u5206\u8bcd\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u4e00\u6b65\u3002\u53ef\u4ee5\u4f7f\u7528 <code>jieba<\/code> \u5e93\u8fdb\u884c\u4e2d\u6587\u5206\u8bcd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>text = &#39; &#39;.join(jieba.cut(text))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u7ebf\u7a0b\u5904\u7406\uff1a<\/strong><\/p>\n<p>\u4f7f\u7528\u591a\u7ebf\u7a0b\u5904\u7406\u5927\u6587\u672c\u6570\u636e\uff0c\u63d0\u9ad8\u5904\u7406\u901f\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from concurrent.futures import ThreadPoolExecutor<\/p>\n<p>def process_text_chunk(chunk):<\/p>\n<p>    return &#39; &#39;.join(jieba.cut(chunk))<\/p>\n<p>text_chunks = [text[i:i+1000] for i in range(0, len(text), 1000)]<\/p>\n<p>with ThreadPoolExecutor() as executor:<\/p>\n<p>    processed_chunks = executor.map(process_text_chunk, text_chunks)<\/p>\n<p>text = &#39; &#39;.join(processed_chunks)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4f18\u5316\u65b9\u6cd5\uff0c\u53ef\u4ee5\u751f\u6210\u66f4\u52a0\u7cbe\u7f8e\u4e14\u7b26\u5408\u9700\u6c42\u7684\u8bcd\u4e91\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u5728\u4f7f\u7528Python\u751f\u6210\u8bcd\u4e91\u7684\u8fc7\u7a0b\u4e2d\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5bfc\u5165\u6587\u672c\u6587\u4ef6\u4ee5\u521b\u5efa\u8bcd\u4e91\uff1f<\/strong><br \/>\u8981\u521b\u5efa\u8bcd\u4e91\uff0c\u60a8\u9700\u8981\u9996\u5148\u5c06\u6587\u672c\u6587\u4ef6\u5bfc\u5165\u5230Python\u4e2d\u3002\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>open()<\/code>\u51fd\u6570\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff0c\u5e76\u4f7f\u7528<code>read()<\/code>\u65b9\u6cd5\u5c06\u5176\u52a0\u8f7d\u4e3a\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">with open(&#39;your_file.txt&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;) as file:\n    text = file.read()\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u6253\u5f00\u540d\u4e3a<code>your_file.txt<\/code>\u7684\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u5185\u5bb9\u5b58\u50a8\u5728\u53d8\u91cf<code>text<\/code>\u4e2d\uff0c\u968f\u540e\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u8bcd\u4e91\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5e93\u6765\u751f\u6210\u8bcd\u4e91\uff1f<\/strong><br \/>Python\u4e2d\u6709\u591a\u4e2a\u5e93\u53ef\u4ee5\u5e2e\u52a9\u751f\u6210\u8bcd\u4e91\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662f<code>wordcloud<\/code>\u5e93\u3002\u8fd9\u4e2a\u5e93\u63d0\u4f9b\u4e86\u7b80\u5355\u7684API\u6765\u521b\u5efa\u8bcd\u4e91\u56fe\u5f62\u3002\u9664\u4e86<code>wordcloud<\/code>\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u6765\u53ef\u89c6\u5316\u751f\u6210\u7684\u8bcd\u4e91\u3002\u786e\u4fdd\u5728\u60a8\u7684\u73af\u5883\u4e2d\u5b89\u88c5\u8fd9\u4e9b\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a  <\/p>\n<pre><code class=\"language-bash\">pip install wordcloud matplotlib\n<\/code><\/pre>\n<p><strong>\u751f\u6210\u7684\u8bcd\u4e91\u53ef\u4ee5\u4fdd\u5b58\u4e3a\u54ea\u4e9b\u683c\u5f0f\uff1f<\/strong><br \/>\u751f\u6210\u7684\u8bcd\u4e91\u53ef\u4ee5\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u4fdd\u5b58\u4e3a\u591a\u79cd\u683c\u5f0f\uff0c\u5305\u62ecPNG\u3001JPEG\u548cPDF\u7b49\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>savefig()<\/code>\u65b9\u6cd5\u6765\u4fdd\u5b58\u8bcd\u4e91\u56fe\u50cf\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\nfrom wordcloud import WordCloud\n\nwordcloud = WordCloud().generate(text)\nplt.imshow(wordcloud, interpolation=&#39;bilinear&#39;)\nplt.axis(&quot;off&quot;)\nplt.savefig(&#39;wordcloud.png&#39;, format=&#39;png&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u60a8\u5c31\u53ef\u4ee5\u5c06\u8bcd\u4e91\u56fe\u50cf\u4fdd\u5b58\u4e3a<code>wordcloud.png<\/code>\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528 Python \u505a\u8bcd\u4e91\u5e76\u5bfc\u5165\u6587\u4ef6\u7684\u65b9\u6cd5 \u7528Python\u505a\u8bcd\u4e91\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u6b65\u5b9e\u73b0\uff1a\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u3001\u51c6\u5907\u6587\u672c\u6570\u636e [&hellip;]","protected":false},"author":3,"featured_media":1029691,"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\/1029676"}],"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=1029676"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1029676\/revisions"}],"predecessor-version":[{"id":1029694,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1029676\/revisions\/1029694"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1029691"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1029676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1029676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1029676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}