{"id":923201,"date":"2024-12-26T14:45:38","date_gmt":"2024-12-26T06:45:38","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/923201.html"},"modified":"2024-12-26T14:45:40","modified_gmt":"2024-12-26T06:45:40","slug":"%e5%a6%82%e4%bd%95%e7%94%bb%e4%ba%91%e5%9b%bepython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/923201.html","title":{"rendered":"\u5982\u4f55\u753b\u4e91\u56fepython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211347\/d3635105-a057-4669-86d9-11c0ddd1465e.webp\" alt=\"\u5982\u4f55\u753b\u4e91\u56fepython\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u7ed8\u5236\u4e91\u56fe\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528WordCloud\u5e93\u3001\u5229\u7528Matplotlib\u8fdb\u884c\u53ef\u89c6\u5316\u3001\u8c03\u6574\u5b57\u4f53\u548c\u989c\u8272\u7b49\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u521b\u5efa\u7f8e\u89c2\u4e14\u5b9e\u7528\u7684\u4e91\u56fe\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Python\u7ed8\u5236\u4e91\u56fe\u65f6\uff0c\u9996\u5148\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0cWordCloud\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u9009\u62e9\u3002\u5b83\u53ef\u4ee5\u8f7b\u677e\u5c06\u6587\u5b57\u6570\u636e\u8f6c\u6362\u4e3a\u4e91\u56fe\uff0c\u652f\u6301\u81ea\u5b9a\u4e49\u5b57\u4f53\u3001\u989c\u8272\u548c\u5f62\u72b6\u3002\u5176\u6b21\uff0cMatplotlib\u53ef\u4ee5\u7528\u4e8e\u8fdb\u4e00\u6b65\u7684\u53ef\u89c6\u5316\u548c\u8c03\u6574\uff0c\u4f7f\u4e91\u56fe\u66f4\u52a0\u5438\u5f15\u4eba\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5fc5\u8981\u7684\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7ed8\u5236\u4e91\u56fe\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86\u5fc5\u8981\u7684Python\u5e93\u3002\u4e3b\u8981\u5305\u62ecWordCloud\u548cMatplotlib\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u8981\u4f7f\u7528WordCloud\u548cMatplotlib\u5e93\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u5b83\u4eec\u5df2\u7ecf\u5b89\u88c5\u5728\u4f60\u7684Python\u73af\u5883\u4e2d\u3002\u5982\u679c\u6ca1\u6709\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u901a\u8fc7pip\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<\/li>\n<li>\n<p><strong>\u5bfc\u5165\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u4f60\u7684Python\u811a\u672c\u6216Jupyter Notebook\u4e2d\u5bfc\u5165\u8fd9\u4e9b\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wordcloud import WordCloud<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u51c6\u5907\u6587\u672c\u6570\u636e<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u751f\u6210\u4e91\u56fe\uff0c\u4f60\u9700\u8981\u4e00\u4e2a\u6587\u672c\u6570\u636e\u96c6\u3002\u6587\u672c\u53ef\u4ee5\u662f\u4efb\u4f55\u5f62\u5f0f\u7684\u5b57\u7b26\u4e32\u6570\u636e\uff0c\u4f8b\u5982\u6587\u6863\u3001\u4e66\u7c4d\u6216\u7f51\u9875\u6587\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bfb\u53d6\u6587\u672c\u6570\u636e<\/strong><\/p>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4ece\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6570\u636e\uff0c\u6216\u8005\u76f4\u63a5\u5728\u4ee3\u7801\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u5b57\u7b26\u4e32\u53d8\u91cf\u3002\u4ee5\u4e0b\u662f\u4ece\u6587\u4ef6\u8bfb\u53d6\u6570\u636e\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;textfile.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<\/li>\n<li>\n<p><strong>\u5904\u7406\u6587\u672c\u6570\u636e<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210\u4e91\u56fe\u4e4b\u524d\uff0c\u53ef\u80fd\u9700\u8981\u5bf9\u6587\u672c\u6570\u636e\u8fdb\u884c\u4e00\u4e9b\u9884\u5904\u7406\uff0c\u4f8b\u5982\u53bb\u9664\u505c\u7528\u8bcd\u3001\u6807\u70b9\u7b26\u53f7\u6216\u5176\u4ed6\u4e0d\u5fc5\u8981\u7684\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>from nltk.corpus import stopwords<\/p>\n<h2><strong>\u53bb\u9664\u6807\u70b9\u7b26\u53f7<\/strong><\/h2>\n<p>text = re.sub(r&#39;[^\\w\\s]&#39;, &#39;&#39;, text)<\/p>\n<h2><strong>\u53bb\u9664\u505c\u7528\u8bcd<\/strong><\/h2>\n<p>stop_words = set(stopwords.words(&#39;english&#39;))<\/p>\n<p>text = &#39; &#39;.join([word for word in text.split() if word.lower() not in stop_words])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u751f\u6210\u4e91\u56fe<\/p>\n<\/p>\n<p><p>\u6709\u4e86\u6e05\u7406\u540e\u7684\u6587\u672c\u6570\u636e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u751f\u6210\u4e91\u56fe\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efaWordCloud\u5bf9\u8c61<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528WordCloud\u5e93\u521b\u5efa\u4e00\u4e2aWordCloud\u5bf9\u8c61\uff0c\u5e76\u4f20\u5165\u6587\u672c\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">wordcloud = WordCloud(width=800, height=400, background_color=&#39;white&#39;).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u4e91\u56fe<\/strong><\/p>\n<\/p>\n<p><p>WordCloud\u5e93\u63d0\u4f9b\u4e86\u8bb8\u591a\u53c2\u6570\u6765\u81ea\u5b9a\u4e49\u4e91\u56fe\u7684\u5916\u89c2\uff0c\u4f8b\u5982\u5b57\u4f53\u3001\u989c\u8272\u548c\u5f62\u72b6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">wordcloud = WordCloud(width=800, height=400, <\/p>\n<p>                      background_color=&#39;white&#39;, <\/p>\n<p>                      max_font_size=100, <\/p>\n<p>                      colormap=&#39;viridis&#39;).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>width<\/code>\u548c<code>height<\/code>\uff1a\u6307\u5b9a\u4e91\u56fe\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u3002<\/li>\n<li><code>background_color<\/code>\uff1a\u8bbe\u7f6e\u80cc\u666f\u989c\u8272\u3002<\/li>\n<li><code>max_font_size<\/code>\uff1a\u8bbe\u7f6e\u6700\u5927\u5b57\u4f53\u5927\u5c0f\u3002<\/li>\n<li><code>colormap<\/code>\uff1a\u6307\u5b9a\u989c\u8272\u6620\u5c04\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u53ef\u89c6\u5316\u4e91\u56fe<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Matplotlib\u5e93\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u751f\u6210\u7684\u4e91\u56fe\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u663e\u793a\u4e91\u56fe<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Matplotlib\u663e\u793a\u751f\u6210\u7684\u4e91\u56fe\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">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<\/li>\n<li>\n<p><strong>\u4fdd\u5b58\u4e91\u56fe<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u60f3\u5c06\u4e91\u56fe\u4fdd\u5b58\u4e3a\u56fe\u50cf\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>WordCloud.to_file()<\/code>\u65b9\u6cd5\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<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u8fdb\u9636\u6280\u5de7<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53<\/strong><\/p>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u7279\u5b9a\u7684\u5b57\u4f53\u6587\u4ef6\u6765\u81ea\u5b9a\u4e49\u4e91\u56fe\u4e2d\u7684\u5b57\u4f53\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">wordcloud = WordCloud(width=800, height=400, <\/p>\n<p>                      background_color=&#39;white&#39;, <\/p>\n<p>                      font_path=&#39;path\/to\/font.ttf&#39;).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u63a9\u7801<\/strong><\/p>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u56fe\u50cf\u63a9\u7801\u6765\u6539\u53d8\u4e91\u56fe\u7684\u5f62\u72b6\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u4e00\u4e2a\u5706\u5f62\u63a9\u7801\uff1a<\/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;circle.png&#39;))<\/p>\n<p>wordcloud = WordCloud(width=800, height=400, <\/p>\n<p>                      background_color=&#39;white&#39;, <\/p>\n<p>                      mask=mask).generate(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u6574\u8bcd\u9891<\/strong><\/p>\n<\/p>\n<p><p>WordCloud\u5bf9\u8c61\u5141\u8bb8\u4f60\u6839\u636e\u8bcd\u9891\u6765\u8c03\u6574\u8bcd\u7684\u5927\u5c0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">wordcloud = WordCloud(width=800, height=400, <\/p>\n<p>                      background_color=&#39;white&#39;, <\/p>\n<p>                      max_words=200).generate_from_frequencies(word_frequencies)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d<code>word_frequencies<\/code>\u662f\u4e00\u4e2a\u5b57\u5178\uff0c\u952e\u4e3a\u8bcd\uff0c\u503c\u4e3a\u8bcd\u9891\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6587\u672c\u5206\u6790<\/strong><\/p>\n<\/p>\n<p><p>\u4e91\u56fe\u662f\u6587\u672c\u5206\u6790\u4e2d\u5e38\u7528\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5feb\u901f\u8bc6\u522b\u6587\u672c\u4e2d\u51fa\u73b0\u9891\u7387\u8f83\u9ad8\u7684\u8bcd\u8bed\uff0c\u4ece\u800c\u63ed\u793a\u6587\u672c\u7684\u4e3b\u9898\u548c\u91cd\u70b9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8425\u9500\u548c\u54c1\u724c\u5206\u6790<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5e02\u573a\u8425\u9500\u4e2d\uff0c\u4e91\u56fe\u53ef\u4ee5\u7528\u4e8e\u5206\u6790\u5ba2\u6237\u53cd\u9988\u548c\u793e\u4ea4\u5a92\u4f53\u8bc4\u8bba\uff0c\u5e2e\u52a9\u4f01\u4e1a\u4e86\u89e3\u516c\u4f17\u5bf9\u54c1\u724c\u7684\u770b\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6559\u80b2<\/strong><\/p>\n<\/p>\n<p><p>\u6559\u5e08\u53ef\u4ee5\u5229\u7528\u4e91\u56fe\u5e2e\u52a9\u5b66\u751f\u66f4\u76f4\u89c2\u5730\u7406\u89e3\u6587\u672c\u6750\u6599\u7684\u6838\u5fc3\u5185\u5bb9\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\uff1a\u901a\u8fc7\u4f7f\u7528Python\u7684WordCloud\u548cMatplotlib\u5e93\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u7f8e\u89c2\u7684\u4e91\u56fe\u3002\u901a\u8fc7\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u3001\u51c6\u5907\u548c\u5904\u7406\u6587\u672c\u6570\u636e\u3001\u751f\u6210\u548c\u81ea\u5b9a\u4e49\u4e91\u56fe\u4ee5\u53ca\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u60a8\u53ef\u4ee5\u5728\u591a\u79cd\u5e94\u7528\u573a\u666f\u4e2d\u5229\u7528\u4e91\u56fe\u7684\u4f18\u52bf\u3002\u65e0\u8bba\u662f\u7528\u4e8e\u6587\u672c\u5206\u6790\u3001\u5e02\u573a\u8425\u9500\u8fd8\u662f\u6559\u80b2\uff0c\u4e91\u56fe\u90fd\u662f\u4e00\u79cd\u5f3a\u5927\u4e14\u76f4\u89c2\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u4e91\u56fe\u663e\u793a\u6587\u672c\u6570\u636e\u7684\u9891\u7387\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>wordcloud<\/code>\u5e93\u6765\u521b\u5efa\u4e91\u56fe\u3002\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5\u8be5\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7<code>pip install wordcloud<\/code>\u8fdb\u884c\u5b89\u88c5\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u9700\u8981\u51c6\u5907\u6587\u672c\u6570\u636e\uff0c\u7136\u540e\u4f7f\u7528<code>WordCloud<\/code>\u7c7b\u751f\u6210\u4e91\u56fe\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">from wordcloud import WordCloud\nimport matplotlib.pyplot as plt\n\ntext = &quot;\u8fd9\u91cc\u662f\u60a8\u7684\u6587\u672c\u6570\u636e\uff0c\u53ef\u4ee5\u662f\u4efb\u4f55\u5185\u5bb9&quot;\nwordcloud = WordCloud(width=800, height=400, background_color=&#39;white&#39;).generate(text)\n\nplt.figure(figsize=(10, 5))\nplt.imshow(wordcloud, interpolation=&#39;bilinear&#39;)\nplt.axis(&#39;off&#39;)\nplt.show()\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u60a8\u5c06\u80fd\u591f\u751f\u6210\u4e00\u4e2a\u7f8e\u89c2\u7684\u4e91\u56fe\u3002<\/p>\n<p><strong>\u54ea\u4e9b\u6587\u672c\u9884\u5904\u7406\u6b65\u9aa4\u6709\u52a9\u4e8e\u63d0\u9ad8\u4e91\u56fe\u7684\u8d28\u91cf\uff1f<\/strong><br \/>\u5728\u751f\u6210\u4e91\u56fe\u4e4b\u524d\uff0c\u6587\u672c\u9884\u5904\u7406\u662f\u975e\u5e38\u91cd\u8981\u7684\u6b65\u9aa4\u3002\u53bb\u9664\u5e38\u7528\u8bcd\u3001\u6807\u70b9\u7b26\u53f7\u4ee5\u53ca\u8fdb\u884c\u8bcd\u5e72\u63d0\u53d6\u6216\u8bcd\u5f62\u8fd8\u539f\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u4e91\u56fe\u7684\u8d28\u91cf\u3002\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5e93\uff0c\u5982<code>nltk<\/code>\u6216<code>spaCy<\/code>\uff0c\u6765\u6e05\u6d17\u548c\u5904\u7406\u6587\u672c\u6570\u636e\uff0c\u786e\u4fdd\u4e91\u56fe\u66f4\u80fd\u53cd\u6620\u91cd\u8981\u7684\u8bcd\u6c47\u3002<\/p>\n<p><strong>\u5982\u4f55\u81ea\u5b9a\u4e49\u4e91\u56fe\u7684\u5916\u89c2\u548c\u6837\u5f0f\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574<code>WordCloud<\/code>\u7c7b\u7684\u53c2\u6570\u6765\u81ea\u5b9a\u4e49\u4e91\u56fe\u7684\u5916\u89c2\u3002\u6bd4\u5982\uff0c\u53ef\u4ee5\u66f4\u6539\u989c\u8272\u3001\u5b57\u4f53\u3001\u5f62\u72b6\u7b49\u3002\u4f7f\u7528<code>colormap<\/code>\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u989c\u8272\u65b9\u6848\uff0c<code>font_path<\/code>\u53ef\u4ee5\u6307\u5b9a\u5b57\u4f53\u6587\u4ef6\u7684\u8def\u5f84\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\u53c2\u6570\uff1a  <\/p>\n<pre><code class=\"language-python\">wordcloud = WordCloud(width=800, height=400, background_color=&#39;black&#39;, colormap=&#39;viridis&#39;, font_path=&#39;path\/to\/font.ttf&#39;).generate(text)\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u51fa\u72ec\u7279\u4e14\u5177\u6709\u89c6\u89c9\u51b2\u51fb\u529b\u7684\u4e91\u56fe\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u7ed8\u5236\u4e91\u56fe\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528WordCloud\u5e93\u3001\u5229\u7528Matplotlib\u8fdb\u884c\u53ef\u89c6\u5316\u3001\u8c03\u6574\u5b57\u4f53\u548c\u989c\u8272 [&hellip;]","protected":false},"author":3,"featured_media":923204,"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\/923201"}],"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=923201"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/923201\/revisions"}],"predecessor-version":[{"id":923206,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/923201\/revisions\/923206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/923204"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=923201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=923201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=923201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}