{"id":1040077,"date":"2024-12-31T12:38:04","date_gmt":"2024-12-31T04:38:04","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1040077.html"},"modified":"2024-12-31T12:38:07","modified_gmt":"2024-12-31T04:38:07","slug":"python%e7%94%a8jieba%e5%88%86%e8%af%8d%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1040077.html","title":{"rendered":"python\u7528jieba\u5206\u8bcd\u5982\u4f55\u5220\u9664\u6570\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/50657f76-d75d-44d3-a9d4-7333b9254c88.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u7528jieba\u5206\u8bcd\u5982\u4f55\u5220\u9664\u6570\u5b57\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u4f7f\u7528jieba\u5206\u8bcd\u5220\u9664\u6570\u5b57\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06\u5206\u8bcd\u540e\u7684\u7ed3\u679c\u8fc7\u6ee4\u6765\u5b9e\u73b0<\/strong>\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\uff1a\u9996\u5148\u4f7f\u7528jieba\u5bf9\u6587\u672c\u8fdb\u884c\u5206\u8bcd\uff0c\u7136\u540e\u8fc7\u6ee4\u6389\u5206\u8bcd\u7ed3\u679c\u4e2d\u7684\u6570\u5b57\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u8bc6\u522b\u6570\u5b57\u5e76\u5c06\u5176\u5220\u9664\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e00\u6b65\u7684\u5b9e\u73b0\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u548c\u5bfc\u5165jieba<\/h3>\n<\/p>\n<p><p>\u8981\u4f7f\u7528jieba\u5e93\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86\u8be5\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install jieba<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165jieba\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528jieba\u8fdb\u884c\u5206\u8bcd<\/h3>\n<\/p>\n<p><p>jieba\u63d0\u4f9b\u4e86\u591a\u79cd\u5206\u8bcd\u6a21\u5f0f\uff0c\u5305\u62ec\u7cbe\u786e\u6a21\u5f0f\u3001\u5168\u6a21\u5f0f\u548c\u641c\u7d22\u5f15\u64ce\u6a21\u5f0f\u3002\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528\u7cbe\u786e\u6a21\u5f0f\u6765\u8fdb\u884c\u5206\u8bcd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Python\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u7684\u8bbe\u8ba1\u54f2\u5b66\u5f3a\u8c03\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\uff0c\u8bed\u6cd5\u5141\u8bb8\u7a0b\u5e8f\u5458\u4ee5\u66f4\u5c11\u7684\u4ee3\u7801\u884c\u6570\u8868\u8fbe\u60f3\u6cd5\u3002123456&quot;<\/p>\n<p>words = jieba.lcut(text)<\/p>\n<p>print(words)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6267\u884c\u4e0a\u8ff0\u4ee3\u7801\u540e\uff0c\u5c06\u5f97\u5230\u5206\u8bcd\u540e\u7684\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">[&#39;Python&#39;, &#39;\u662f&#39;, &#39;\u4e00\u79cd&#39;, &#39;\u5e7f\u6cdb&#39;, &#39;\u4f7f\u7528&#39;, &#39;\u7684&#39;, &#39;\u9ad8\u7ea7&#39;, &#39;\u7f16\u7a0b&#39;, &#39;\u8bed\u8a00&#39;, &#39;\u3002&#39;, &#39;\u5b83&#39;, &#39;\u7684&#39;, &#39;\u8bbe\u8ba1&#39;, &#39;\u54f2\u5b66&#39;, &#39;\u5f3a\u8c03&#39;, &#39;\u4ee3\u7801&#39;, &#39;\u7684&#39;, &#39;\u53ef\u8bfb\u6027&#39;, &#39;\uff0c&#39;, &#39;\u8bed\u6cd5&#39;, &#39;\u5141\u8bb8&#39;, &#39;\u7a0b\u5e8f\u5458&#39;, &#39;\u4ee5&#39;, &#39;\u66f4\u5c11&#39;, &#39;\u7684&#39;, &#39;\u4ee3\u7801&#39;, &#39;\u884c\u6570&#39;, &#39;\u8868\u8fbe&#39;, &#39;\u60f3\u6cd5&#39;, &#39;\u3002&#39;, &#39;123456&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5220\u9664\u5206\u8bcd\u7ed3\u679c\u4e2d\u7684\u6570\u5b57<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u5220\u9664\u5206\u8bcd\u7ed3\u679c\u4e2d\u7684\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757<code>re<\/code>\u6765\u8bc6\u522b\u548c\u8fc7\u6ee4\u6570\u5b57\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\uff0c\u7528\u4e8e\u8bc6\u522b\u6570\u5b57<\/strong><\/h2>\n<p>pattern = re.compile(r&#39;\\d+&#39;)<\/p>\n<h2><strong>\u8fc7\u6ee4\u6389\u5206\u8bcd\u7ed3\u679c\u4e2d\u7684\u6570\u5b57<\/strong><\/h2>\n<p>filtered_words = [word for word in words if not pattern.fullmatch(word)]<\/p>\n<p>print(filtered_words)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6267\u884c\u4e0a\u8ff0\u4ee3\u7801\u540e\uff0c\u5c06\u5f97\u5230\u8fc7\u6ee4\u6389\u6570\u5b57\u540e\u7684\u5206\u8bcd\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">[&#39;Python&#39;, &#39;\u662f&#39;, &#39;\u4e00\u79cd&#39;, &#39;\u5e7f\u6cdb&#39;, &#39;\u4f7f\u7528&#39;, &#39;\u7684&#39;, &#39;\u9ad8\u7ea7&#39;, &#39;\u7f16\u7a0b&#39;, &#39;\u8bed\u8a00&#39;, &#39;\u3002&#39;, &#39;\u5b83&#39;, &#39;\u7684&#39;, &#39;\u8bbe\u8ba1&#39;, &#39;\u54f2\u5b66&#39;, &#39;\u5f3a\u8c03&#39;, &#39;\u4ee3\u7801&#39;, &#39;\u7684&#39;, &#39;\u53ef\u8bfb\u6027&#39;, &#39;\uff0c&#39;, &#39;\u8bed\u6cd5&#39;, &#39;\u5141\u8bb8&#39;, &#39;\u7a0b\u5e8f\u5458&#39;, &#39;\u4ee5&#39;, &#39;\u66f4\u5c11&#39;, &#39;\u7684&#39;, &#39;\u4ee3\u7801&#39;, &#39;\u884c\u6570&#39;, &#39;\u8868\u8fbe&#39;, &#39;\u60f3\u6cd5&#39;, &#39;\u3002&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e0a\u8ff0\u6b65\u9aa4\u7684\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>import re<\/p>\n<h2><strong>\u521d\u59cb\u5316\u6587\u672c<\/strong><\/h2>\n<p>text = &quot;Python\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u7684\u8bbe\u8ba1\u54f2\u5b66\u5f3a\u8c03\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\uff0c\u8bed\u6cd5\u5141\u8bb8\u7a0b\u5e8f\u5458\u4ee5\u66f4\u5c11\u7684\u4ee3\u7801\u884c\u6570\u8868\u8fbe\u60f3\u6cd5\u3002123456&quot;<\/p>\n<h2><strong>\u4f7f\u7528jieba\u8fdb\u884c\u5206\u8bcd<\/strong><\/h2>\n<p>words = jieba.lcut(text)<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\uff0c\u7528\u4e8e\u8bc6\u522b\u6570\u5b57<\/strong><\/h2>\n<p>pattern = re.compile(r&#39;\\d+&#39;)<\/p>\n<h2><strong>\u8fc7\u6ee4\u6389\u5206\u8bcd\u7ed3\u679c\u4e2d\u7684\u6570\u5b57<\/strong><\/h2>\n<p>filtered_words = [word for word in words if not pattern.fullmatch(word)]<\/p>\n<h2><strong>\u8f93\u51fa\u8fc7\u6ee4\u540e\u7684\u5206\u8bcd\u7ed3\u679c<\/strong><\/h2>\n<p>print(filtered_words)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u793a\u4f8b\u6269\u5c55<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u6587\u672c\u4e2d\u4e0d\u4ec5\u5305\u542b\u7eaf\u6570\u5b57\uff0c\u8fd8\u53ef\u80fd\u5305\u542b\u6570\u5b57\u4e0e\u5b57\u6bcd\u7684\u7ec4\u5408\uff08\u5982\u201cabc123\u201d\uff09\uff0c\u6216\u6570\u5b57\u4e0e\u6c49\u5b57\u7684\u7ec4\u5408\uff08\u5982\u201c123\u4e2a\u201d\uff09\u3002\u5bf9\u4e8e\u8fd9\u4e9b\u60c5\u51b5\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5982\u679c\u5e0c\u671b\u5220\u9664\u5305\u542b\u6570\u5b57\u7684\u6240\u6709\u8bcd\u8bed\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6a21\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pattern = re.compile(r&#39;\\w*\\d+\\w*&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><pre><code class=\"language-python\">filtered_words = [word for word in words if not pattern.search(word)]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001jieba\u5206\u8bcd\u7684\u5176\u4ed6\u529f\u80fd<\/h3>\n<\/p>\n<p><p>jieba\u4e0d\u4ec5\u652f\u6301\u57fa\u672c\u7684\u5206\u8bcd\u529f\u80fd\uff0c\u8fd8\u652f\u6301\u81ea\u5b9a\u4e49\u8bcd\u5178\u3001\u5173\u952e\u8bcd\u63d0\u53d6\u3001\u8bcd\u6027\u6807\u6ce8\u7b49\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u529f\u80fd\u7684\u4ecb\u7ecd\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u81ea\u5b9a\u4e49\u8bcd\u5178<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e00\u4e9b\u7279\u5b9a\u9886\u57df\u7684\u8bcd\u6c47\uff0cjieba\u5185\u7f6e\u8bcd\u5178\u53ef\u80fd\u65e0\u6cd5\u8986\u76d6\u3002\u6b64\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9a\u4e49\u8bcd\u5178\u6765\u63d0\u9ad8\u5206\u8bcd\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">jieba.load_userdict(&quot;user_dict.txt&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u81ea\u5b9a\u4e49\u8bcd\u5178\u6587\u4ef6<code>user_dict.txt<\/code>\u4e2d\uff0c\u6bcf\u884c\u4e00\u4e2a\u8bcd\u8bed\uff0c\u53ef\u4ee5\u6307\u5b9a\u8bcd\u9891\u548c\u8bcd\u6027\uff0c\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>\u81ea\u5b9a\u4e49\u8bcd\u8bed \u8bcd\u9891 \u8bcd\u6027<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5173\u952e\u8bcd\u63d0\u53d6<\/h4>\n<\/p>\n<p><p>jieba\u5185\u7f6e\u4e86TF-IDF\u548cTextRank\u4e24\u79cd\u5173\u952e\u8bcd\u63d0\u53d6\u7b97\u6cd5\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528TF-IDF\u7b97\u6cd5\u63d0\u53d6\u5173\u952e\u8bcd\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba.analyse<\/p>\n<p>text = &quot;Python\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u7684\u8bbe\u8ba1\u54f2\u5b66\u5f3a\u8c03\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\uff0c\u8bed\u6cd5\u5141\u8bb8\u7a0b\u5e8f\u5458\u4ee5\u66f4\u5c11\u7684\u4ee3\u7801\u884c\u6570\u8868\u8fbe\u60f3\u6cd5\u3002&quot;<\/p>\n<h2><strong>\u63d0\u53d6\u5173\u952e\u8bcd<\/strong><\/h2>\n<p>keywords = jieba.analyse.extract_tags(text, topK=5)<\/p>\n<p>print(keywords)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u8bcd\u6027\u6807\u6ce8<\/h4>\n<\/p>\n<p><p>jieba\u8fd8\u652f\u6301\u5bf9\u5206\u8bcd\u7ed3\u679c\u8fdb\u884c\u8bcd\u6027\u6807\u6ce8\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba.posseg as pseg<\/p>\n<p>words = pseg.lcut(text)<\/p>\n<p>for word, flag in words:<\/p>\n<p>    print(f&#39;{word} {flag}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u6027\u80fd\u4f18\u5316<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5927\u89c4\u6a21\u6587\u672c\u6570\u636e\u5904\u7406\uff0cjieba\u63d0\u4f9b\u4e86\u5e76\u884c\u5206\u8bcd\u529f\u80fd\uff0c\u53ef\u4ee5\u5229\u7528\u591a\u6838CPU\u63d0\u9ad8\u5206\u8bcd\u901f\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">jieba.enable_parallel(4)  # \u5f00\u542f4\u4e2a\u5e76\u884c\u4efb\u52a1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528jieba\u5206\u8bcd\u5e76\u5220\u9664\u6570\u5b57\u3002\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\u4f7f\u7528jieba\u8fdb\u884c\u5206\u8bcd\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fc7\u6ee4\u6570\u5b57\u4ee5\u53ca\u4e00\u4e9bjieba\u7684\u9ad8\u7ea7\u529f\u80fd\u548c\u6027\u80fd\u4f18\u5316\u65b9\u6cd5\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528jieba\u5206\u8bcd\u5e93\u5bf9\u6587\u672c\u8fdb\u884c\u5206\u8bcd\uff1f<\/strong><br \/>jieba\u5206\u8bcd\u5e93\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u63a5\u53e3\u6765\u5904\u7406\u4e2d\u6587\u6587\u672c\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>jieba.cut()<\/code>\u65b9\u6cd5\u6765\u5bf9\u53e5\u5b50\u8fdb\u884c\u5206\u8bcd\uff0c\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u53ef\u8fed\u4ee3\u7684\u751f\u6210\u5668\uff0c\u7528\u6237\u53ef\u4ee5\u5c06\u5176\u8f6c\u6362\u4e3a\u5217\u8868\u6216\u5b57\u7b26\u4e32\u683c\u5f0f\u3002\u4f7f\u7528\u65f6\u53ea\u9700\u5b89\u88c5jieba\u5e93\uff0c\u901a\u8fc7<code>pip install jieba<\/code>\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5728jieba\u5206\u8bcd\u4e2d\uff0c\u5982\u4f55\u81ea\u5b9a\u4e49\u505c\u7528\u8bcd\u4ee5\u8fc7\u6ee4\u4e0d\u9700\u8981\u7684\u5185\u5bb9\uff1f<\/strong><br \/>\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u505c\u7528\u8bcd\u7684\u6587\u672c\u6587\u4ef6\uff0c\u5c06\u5176\u5185\u5bb9\u52a0\u8f7d\u5230jieba\u4e2d\uff0c\u5b9e\u73b0\u81ea\u5b9a\u4e49\u505c\u7528\u8bcd\u7684\u529f\u80fd\u3002\u4f7f\u7528<code>jieba.analyse.set_stop_words()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u6307\u5b9a\u81ea\u5b9a\u4e49\u7684\u505c\u7528\u8bcd\u6587\u4ef6\uff0c\u4ece\u800c\u5728\u5206\u8bcd\u65f6\u81ea\u52a8\u8fc7\u6ee4\u6389\u8fd9\u4e9b\u8bcd\u6c47\uff0c\u5305\u62ec\u6570\u5b57\u3001\u6807\u70b9\u7b26\u53f7\u7b49\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u5206\u8bcd\u7ed3\u679c\u4e2d\u53bb\u9664\u6570\u5b57\u53ca\u7279\u6b8a\u5b57\u7b26\uff1f<\/strong><br \/>\u5728\u4f7f\u7528jieba\u5206\u8bcd\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7Python\u7684\u5217\u8868\u63a8\u5bfc\u5f0f\u8fc7\u6ee4\u5206\u8bcd\u7ed3\u679c\u3002\u53ea\u9700\u68c0\u67e5\u6bcf\u4e2a\u5206\u8bcd\u662f\u5426\u4e3a\u6570\u5b57\u6216\u7279\u6b8a\u5b57\u7b26\uff0c\u82e5\u4e0d\u662f\uff0c\u5219\u5c06\u5176\u4fdd\u7559\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<code>filtered_words = [word for word in jieba.cut(text) if not word.isdigit()]<\/code>\uff0c\u8fd9\u6837\u4fbf\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u5206\u8bcd\u7ed3\u679c\u7684\u6e05\u6d17\uff0c\u53bb\u9664\u6240\u6709\u6570\u5b57\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u4f7f\u7528jieba\u5206\u8bcd\u5220\u9664\u6570\u5b57\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06\u5206\u8bcd\u540e\u7684\u7ed3\u679c\u8fc7\u6ee4\u6765\u5b9e\u73b0\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\uff1a\u9996\u5148\u4f7f\u7528jieba [&hellip;]","protected":false},"author":3,"featured_media":1040083,"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\/1040077"}],"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=1040077"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1040077\/revisions"}],"predecessor-version":[{"id":1040085,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1040077\/revisions\/1040085"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1040083"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1040077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1040077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1040077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}