{"id":1145147,"date":"2025-01-08T23:05:46","date_gmt":"2025-01-08T15:05:46","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1145147.html"},"modified":"2025-01-08T23:05:49","modified_gmt":"2025-01-08T15:05:49","slug":"python%e5%a6%82%e4%bd%95%e6%8f%90%e5%8f%96%e5%87%ba%e4%b8%80%e5%8f%a5%e8%af%9d%e4%b8%ad%e7%9a%84%e4%b8%ad%e6%96%87","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1145147.html","title":{"rendered":"python\u5982\u4f55\u63d0\u53d6\u51fa\u4e00\u53e5\u8bdd\u4e2d\u7684\u4e2d\u6587"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181858\/52b544e7-9b87-40ac-b55e-b896978769a4.webp\" alt=\"python\u5982\u4f55\u63d0\u53d6\u51fa\u4e00\u53e5\u8bdd\u4e2d\u7684\u4e2d\u6587\" \/><\/p>\n<p><p> <strong>Python\u63d0\u53d6\u51fa\u4e00\u53e5\u8bdd\u4e2d\u7684\u4e2d\u6587\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5229\u7528\u5b57\u7b26\u4e32\u7684unicode\u7f16\u7801\u8303\u56f4\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\u7b49\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u6700\u5e38\u89c1\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u7075\u6d3b\u5730\u5339\u914d\u5404\u79cd\u5b57\u7b26\u6a21\u5f0f\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26<\/h2>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5339\u914d\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u548c\u63d0\u53d6\u7279\u5b9a\u6a21\u5f0f\u7684\u5b57\u7b26\u3002\u5728Python\u4e2d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u7531<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u652f\u6301\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u4e2d\u6587\u5b57\u7b26\u7684\u8303\u56f4\u6765\u63d0\u53d6\u4e2d\u6587\u3002<\/p>\n<\/p>\n<p><h3>1.1\u3001\u57fa\u672c\u7528\u6cd5<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def extract_chinese(text):<\/p>\n<p>    pattern = re.compile(r&#39;[\\u4e00-\\u9fa5]&#39;)<\/p>\n<p>    chinese_chars = pattern.findall(text)<\/p>\n<p>    return &#39;&#39;.join(chinese_chars)<\/p>\n<p>text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5sentence with English and \u4e2d\u6587 characters.&quot;<\/p>\n<p>result = extract_chinese(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u4e2d\u6587<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f<code>[\\u4e00-\\u9fa5]<\/code>\u6765\u5339\u914d\u4e2d\u6587\u5b57\u7b26\u3002<code>re.compile<\/code>\u51fd\u6570\u7528\u4e8e\u7f16\u8bd1\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c<code>pattern.findall<\/code>\u51fd\u6570\u5219\u7528\u4e8e\u67e5\u627e\u6240\u6709\u5339\u914d\u7684\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>1.2\u3001\u5904\u7406\u591a\u79cd\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u6211\u4eec\u9700\u8981\u63d0\u53d6\u7684\u4e0d\u4ec5\u4ec5\u662f\u4e2d\u6587\u5b57\u7b26\uff0c\u8fd8\u5305\u62ec\u5176\u4ed6\u4e1c\u4e9a\u8bed\u8a00\u7684\u5b57\u7b26\uff0c\u53ef\u4ee5\u6269\u5c55\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u8303\u56f4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def extract_asian_characters(text):<\/p>\n<p>    pattern = re.compile(r&#39;[\\u4e00-\\u9fa5\\u3040-\\u30ff\\uac00-\\ud7af]&#39;)<\/p>\n<p>    asian_chars = pattern.findall(text)<\/p>\n<p>    return &#39;&#39;.join(asian_chars)<\/p>\n<p>text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5sentence with English, \u4e2d\u6587, \u65e5\u672c\u8a9e, and \ud55c\uad6d\uc5b4 characters.&quot;<\/p>\n<p>result = extract_asian_characters(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u4e2d\u6587\u65e5\u672c\u8a9e\ud55c\uad6d\uc5b4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u6269\u5c55\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6dfb\u52a0\u4e86\u65e5\u6587\uff08<code>[\\u3040-\\u30ff]<\/code>\uff09\u548c\u97e9\u6587\uff08<code>[\\uac00-\\ud7af]<\/code>\uff09\u7684\u5b57\u7b26\u8303\u56f4\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u7684unicode\u7f16\u7801\u8303\u56f4<\/h2>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u5b57\u7b26\u7684unicode\u7f16\u7801\u8303\u56f4\u6765\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u3002\u4e2d\u6587\u5b57\u7b26\u7684unicode\u7f16\u7801\u8303\u56f4\u662f<code>\\u4e00<\/code>\u5230<code>\\u9fa5<\/code>\u3002\u6211\u4eec\u53ef\u4ee5\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\uff0c\u68c0\u67e5\u5b83\u4eec\u662f\u5426\u5728\u8fd9\u4e2a\u8303\u56f4\u5185\u3002<\/p>\n<\/p>\n<p><h3>2.1\u3001\u57fa\u672c\u7528\u6cd5<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528unicode\u7f16\u7801\u8303\u56f4\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def extract_chinese(text):<\/p>\n<p>    chinese_chars = [char for char in text if &#39;\\u4e00&#39; &lt;= char &lt;= &#39;\\u9fa5&#39;]<\/p>\n<p>    return &#39;&#39;.join(chinese_chars)<\/p>\n<p>text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5sentence with English and \u4e2d\u6587 characters.&quot;<\/p>\n<p>result = extract_chinese(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u4e2d\u6587<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\uff0c\u5e76\u68c0\u67e5\u5b83\u4eec\u7684unicode\u7f16\u7801\u662f\u5426\u5728\u4e2d\u6587\u5b57\u7b26\u8303\u56f4\u5185\u3002<\/p>\n<\/p>\n<p><h3>2.2\u3001\u5904\u7406\u591a\u79cd\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u540c\u6837\u5730\uff0c\u5982\u679c\u6211\u4eec\u9700\u8981\u63d0\u53d6\u591a\u79cd\u4e1c\u4e9a\u8bed\u8a00\u7684\u5b57\u7b26\uff0c\u53ef\u4ee5\u6269\u5c55unicode\u7f16\u7801\u8303\u56f4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def extract_asian_characters(text):<\/p>\n<p>    asian_chars = [char for char in text if &#39;\\u4e00&#39; &lt;= char &lt;= &#39;\\u9fa5&#39; or &#39;\\u3040&#39; &lt;= char &lt;= &#39;\\u30ff&#39; or &#39;\\uac00&#39; &lt;= char &lt;= &#39;\\ud7af&#39;]<\/p>\n<p>    return &#39;&#39;.join(asian_chars)<\/p>\n<p>text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5sentence with English, \u4e2d\u6587, \u65e5\u672c\u8a9e, and \ud55c\uad6d\uc5b4 characters.&quot;<\/p>\n<p>result = extract_asian_characters(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u4e2d\u6587\u65e5\u672c\u8a9e\ud55c\uad6d\uc5b4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u68c0\u67e5\u5b57\u7b26\u662f\u5426\u5728\u4e2d\u6587\u3001\u65e5\u6587\u6216\u97e9\u6587\u7684unicode\u7f16\u7801\u8303\u56f4\u5185\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93<\/h2>\n<\/p>\n<p><p>\u9664\u4e86\u5185\u7f6e\u7684\u65b9\u6cd5\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u501f\u52a9\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u6765\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u3002\u8fd9\u4e9b\u5e93\u901a\u5e38\u4f1a\u63d0\u4f9b\u66f4\u9ad8\u7ea7\u7684\u529f\u80fd\u548c\u66f4\u597d\u7684\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><h3>3.1\u3001\u4f7f\u7528<code>zhon<\/code>\u5e93<\/h3>\n<\/p>\n<p><p><code>zhon<\/code>\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u5904\u7406\u4e2d\u6587\u6587\u672c\u7684Python\u5e93\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5<code>zhon<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install zhon<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528<code>zhon<\/code>\u5e93\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from zhon.hanzi import characters<\/p>\n<p>import re<\/p>\n<p>def extract_chinese(text):<\/p>\n<p>    pattern = re.compile(f&#39;[{characters}]&#39;)<\/p>\n<p>    chinese_chars = pattern.findall(text)<\/p>\n<p>    return &#39;&#39;.join(chinese_chars)<\/p>\n<p>text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5sentence with English and \u4e2d\u6587 characters.&quot;<\/p>\n<p>result = extract_chinese(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u4e2d\u6587<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>zhon.hanzi.characters<\/code>\u5305\u542b\u4e86\u6240\u6709\u4e2d\u6587\u5b57\u7b26\u7684\u8303\u56f4\uff0c\u4f7f\u7528\u5b83\u53ef\u4ee5\u66f4\u52a0\u51c6\u786e\u5730\u5339\u914d\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>3.2\u3001\u4f7f\u7528<code>jieba<\/code>\u5e93<\/h3>\n<\/p>\n<p><p><code>jieba<\/code>\u662f\u4e00\u4e2a\u5e38\u7528\u7684\u4e2d\u6587\u5206\u8bcd\u5e93\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5<code>jieba<\/code>\u5e93\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\uff0c\u4f7f\u7528<code>jieba<\/code>\u5e93\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>def extract_chinese(text):<\/p>\n<p>    words = jieba.lcut(text)<\/p>\n<p>    chinese_chars = [word for word in words if all(&#39;\\u4e00&#39; &lt;= char &lt;= &#39;\\u9fa5&#39; for char in word)]<\/p>\n<p>    return &#39;&#39;.join(chinese_chars)<\/p>\n<p>text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5sentence with English and \u4e2d\u6587 characters.&quot;<\/p>\n<p>result = extract_chinese(text)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u4e2d\u6587<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>jieba.lcut<\/code>\u51fd\u6570\u5c06\u6587\u672c\u5207\u5206\u4e3a\u5355\u8bcd\uff0c\u7136\u540e\u6211\u4eec\u68c0\u67e5\u6bcf\u4e00\u4e2a\u5355\u8bcd\u662f\u5426\u5168\u90e8\u7531\u4e2d\u6587\u5b57\u7b26\u7ec4\u6210\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u6700\u5e38\u89c1\u7684\u5305\u62ec\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5229\u7528\u5b57\u7b26\u4e32\u7684unicode\u7f16\u7801\u8303\u56f4\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\uff1a\u9002\u7528\u4e8e\u9700\u8981\u7075\u6d3b\u5339\u914d\u591a\u79cd\u5b57\u7b26\u6a21\u5f0f\u7684\u573a\u666f\uff0c\u4f7f\u7528\u7b80\u5355\u4e14\u9ad8\u6548\u3002<\/li>\n<li><strong>unicode\u7f16\u7801\u8303\u56f4<\/strong>\uff1a\u9002\u7528\u4e8e\u9700\u8981\u7cbe\u786e\u63a7\u5236\u5b57\u7b26\u8303\u56f4\u7684\u573a\u666f\uff0c\u4ee3\u7801\u7b80\u6d01\u4e14\u6613\u4e8e\u7406\u89e3\u3002<\/li>\n<li><strong>\u7b2c\u4e09\u65b9\u5e93<\/strong>\uff1a\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u7ea7\u529f\u80fd\u548c\u66f4\u597d\u6027\u80fd\u7684\u573a\u666f\uff0c\u901a\u5e38\u9700\u8981\u989d\u5916\u7684\u4f9d\u8d56\u3002<\/li>\n<\/ol>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u6700\u9002\u5408\u7684\u65b9\u6cd5\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u638c\u63e1\u5982\u4f55\u5728Python\u4e2d\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u63d0\u53d6\u53e5\u5b50\u4e2d\u7684\u4e2d\u6587\u5b57\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u63d0\u53d6\u53e5\u5b50\u4e2d\u7684\u4e2d\u6587\u5b57\u7b26\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5bfc\u5165<code>re<\/code>\u6a21\u5757\uff0c\u7f16\u5199\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u4e2d\u6587\u5b57\u7b26\uff0c\u5e76\u4f7f\u7528<code>re.findall()<\/code>\u51fd\u6570\u8fdb\u884c\u63d0\u53d6\u3002\u4f8b\u5982\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f<code>[\\u4e00-\\u9fa5]+<\/code>\u53ef\u4ee5\u7528\u4e8e\u5339\u914d\u6240\u6709\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<p><strong>\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u65f6\uff0c\u5982\u4f55\u5904\u7406\u6807\u70b9\u7b26\u53f7\u548c\u7a7a\u683c\uff1f<\/strong><br \/>\u5728\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u65f6\uff0c\u901a\u5e38\u4f1a\u81ea\u52a8\u5ffd\u7565\u6807\u70b9\u7b26\u53f7\u548c\u7a7a\u683c\uff0c\u56e0\u4e3a\u6b63\u5219\u8868\u8fbe\u5f0f\u4ec5\u5339\u914d\u6307\u5b9a\u8303\u56f4\u7684\u5b57\u7b26\u3002\u5982\u679c\u9700\u8981\u5728\u63d0\u53d6\u540e\u5904\u7406\u6587\u672c\uff0c\u5efa\u8bae\u4f7f\u7528<code>str.replace()<\/code>\u65b9\u6cd5\u53bb\u9664\u65e0\u5173\u7684\u5b57\u7b26\uff0c\u786e\u4fdd\u5f97\u5230\u7684\u7ed3\u679c\u66f4\u4e3a\u5e72\u51c0\u3002<\/p>\n<p><strong>\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u7684\u6548\u7387\u5982\u4f55\uff1f<\/strong><br \/>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u4e2d\u6587\u5b57\u7b26\u7684\u6548\u7387\u76f8\u5bf9\u8f83\u9ad8\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u8f83\u77ed\u53e5\u5b50\u65f6\u3002\u4e0d\u8fc7\uff0c\u5bf9\u4e8e\u957f\u6587\u672c\u6216\u5927\u91cf\u6570\u636e\uff0c\u5efa\u8bae\u5728\u4ee3\u7801\u4e2d\u4f18\u5316\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6216\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u6587\u672c\u5904\u7406\u5e93\uff0c\u5982<code>pandas<\/code>\u6216<code>numpy<\/code>\uff0c\u4ee5\u63d0\u9ad8\u6027\u80fd\u548c\u5904\u7406\u901f\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u63d0\u53d6\u51fa\u4e00\u53e5\u8bdd\u4e2d\u7684\u4e2d\u6587\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5229\u7528\u5b57\u7b26\u4e32\u7684unicode\u7f16\u7801\u8303\u56f4\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93 [&hellip;]","protected":false},"author":3,"featured_media":1145157,"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\/1145147"}],"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=1145147"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145147\/revisions"}],"predecessor-version":[{"id":1145160,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145147\/revisions\/1145160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1145157"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1145147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1145147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1145147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}