{"id":1149454,"date":"2025-01-13T16:49:35","date_gmt":"2025-01-13T08:49:35","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1149454.html"},"modified":"2025-01-13T16:49:37","modified_gmt":"2025-01-13T08:49:37","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e8%af%86%e5%88%ab%e4%b8%ad%e6%96%87","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1149454.html","title":{"rendered":"\u5982\u4f55\u7528python\u8bc6\u522b\u4e2d\u6587"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25180130\/c6212f40-5545-4eac-904e-43d21a27e0ec.webp\" alt=\"\u5982\u4f55\u7528python\u8bc6\u522b\u4e2d\u6587\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u8bc6\u522b\u4e2d\u6587\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u6bd4\u5982\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001Unicode\u7f16\u7801\u5224\u65ad\u3001\u6216\u8005\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u5e93\u7b49\u3002<strong>\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5229\u7528Unicode\u7f16\u7801\u8303\u56f4\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982jieba\u3001\u4f7f\u7528OCR\u6280\u672f<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\u2014\u2014\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5904\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u5339\u914d\u5404\u79cd\u6587\u672c\u6a21\u5f0f\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u6765\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u8bc6\u522b\u4e2d\u6587\u5b57\u7b26\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5339\u914d\u4e2d\u6587\u5b57\u7b26\u7684Unicode\u8303\u56f4\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_chinese(text):<\/p>\n<p>    pattern = re.compile(r&#39;[\\u4e00-\\u9fa5]+&#39;)<\/p>\n<p>    return pattern.search(text) is not None<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>sample_text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5&quot;<\/p>\n<p>print(is_chinese(sample_text))  # \u8f93\u51fa: True<\/p>\n<p>sample_text = &quot;This is a test&quot;<\/p>\n<p>print(is_chinese(sample_text))  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u89e3\u91ca\uff1a<\/h4>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>r&#39;[\\u4e00-\\u9fa5]+&#39;<\/code>\u662f\u5339\u914d\u4e2d\u6587\u5b57\u7b26\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<code>u4e00<\/code>\u5230<code>u9fa5<\/code>\u662f\u5e38\u89c1\u7684\u4e2d\u6587\u5b57\u7b26\u7684Unicode\u7f16\u7801\u8303\u56f4\uff0c\u901a\u8fc7\u5339\u914d\u8fd9\u4e00\u8303\u56f4\u5185\u7684\u5b57\u7b26\uff0c\u53ef\u4ee5\u5224\u65ad\u5b57\u7b26\u4e32\u4e2d\u662f\u5426\u5305\u542b\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5229\u7528Unicode\u7f16\u7801\u8303\u56f4<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u8fd8\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5224\u65ad\u5b57\u7b26\u7684Unicode\u7f16\u7801\u662f\u5426\u5728\u4e2d\u6587\u5b57\u7b26\u7684\u8303\u56f4\u5185\u6765\u8bc6\u522b\u4e2d\u6587\u3002\u8fd9\u6837\u7684\u65b9\u6cd5\u9002\u5408\u5904\u7406\u5355\u4e2a\u5b57\u7b26\u7684\u5224\u65ad\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def is_chinese_char(char):<\/p>\n<p>    return &#39;\\u4e00&#39; &lt;= char &lt;= &#39;\\u9fff&#39;<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>print(is_chinese_char(&#39;\u4f60&#39;))  # \u8f93\u51fa: True<\/p>\n<p>print(is_chinese_char(&#39;a&#39;))  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u89e3\u91ca\uff1a<\/h4>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u901a\u8fc7\u5224\u65ad\u5b57\u7b26\u7684Unicode\u7f16\u7801\u662f\u5426\u5728<code>\\u4e00<\/code>\u5230<code>\\u9fff<\/code>\u4e4b\u95f4\u6765\u5224\u65ad\u8be5\u5b57\u7b26\u662f\u5426\u4e3a\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982jieba<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u5904\u7406\u8f83\u4e3a\u590d\u6742\u7684\u4e2d\u6587\u6587\u672c\u5206\u6790\u4efb\u52a1\uff0c\u7b2c\u4e09\u65b9\u5e93\u5982jieba\u53ef\u4ee5\u63d0\u4f9b\u66f4\u4e3a\u5f3a\u5927\u7684\u529f\u80fd\u3002jieba\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u4e2d\u6587\u5206\u8bcd\u5e93\uff0c\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u4e2d\u6587\u6587\u672c\u7684\u5206\u8bcd\u548c\u8bc6\u522b\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5jieba\u5e93\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install jieba<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>def is_chinese_word(word):<\/p>\n<p>    words = jieba.lcut(word)<\/p>\n<p>    for w in words:<\/p>\n<p>        if &#39;\\u4e00&#39; &lt;= w &lt;= &#39;\\u9fff&#39;:<\/p>\n<p>            return True<\/p>\n<p>    return False<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>sample_text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5&quot;<\/p>\n<p>print(is_chinese_word(sample_text))  # \u8f93\u51fa: True<\/p>\n<p>sample_text = &quot;This is a test&quot;<\/p>\n<p>print(is_chinese_word(sample_text))  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u89e3\u91ca\uff1a<\/h4>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f7f\u7528jieba\u8fdb\u884c\u5206\u8bcd\uff0c\u7136\u540e\u5224\u65ad\u5206\u8bcd\u7ed3\u679c\u4e2d\u662f\u5426\u5305\u542b\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528OCR\u6280\u672f<\/h3>\n<\/p>\n<p><p>OCR\uff08Optical Character Recognition\uff0c\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff09\u6280\u672f\u53ef\u4ee5\u4ece\u56fe\u7247\u4e2d\u8bc6\u522b\u6587\u672c\u3002Tesseract\u662f\u4e00\u4e2a\u5f00\u6e90\u7684OCR\u5e93\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\uff0c\u5305\u62ec\u4e2d\u6587\u3002\u901a\u8fc7\u5c06\u56fe\u50cf\u8f6c\u6362\u4e3a\u6587\u672c\uff0c\u53ef\u4ee5\u8bc6\u522b\u56fe\u50cf\u4e2d\u7684\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5Tesseract\u548cpytesseract\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pytesseract<\/p>\n<p>sudo apt-get install tesseract-ocr<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pytesseract<\/p>\n<p>from PIL import Image<\/p>\n<p>def ocr_chinese(image_path):<\/p>\n<p>    image = Image.open(image_path)<\/p>\n<p>    text = pytesseract.image_to_string(image, lang=&#39;chi_sim&#39;)<\/p>\n<p>    return text<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>image_path = &#39;chinese_text.png&#39;<\/p>\n<p>print(ocr_chinese(image_path))  # \u8f93\u51fa\u8bc6\u522b\u7684\u4e2d\u6587\u6587\u672c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u89e3\u91ca\uff1a<\/h4>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f7f\u7528pytesseract\u548cPIL\u5e93\u8bfb\u53d6\u56fe\u50cf\uff0c\u5e76\u4f7f\u7528Tesseract OCR\u8bc6\u522b\u56fe\u50cf\u4e2d\u7684\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7efc\u5408\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u6216\u8005\u5c06\u591a\u79cd\u65b9\u6cd5\u7ed3\u5408\u4f7f\u7528\u3002\u4f8b\u5982\uff0c\u5728\u5904\u7406\u5927\u91cf\u6587\u672c\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u5148\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6216Unicode\u7f16\u7801\u8303\u56f4\u8fdb\u884c\u521d\u6b65\u7b5b\u9009\uff0c\u518d\u4f7f\u7528jieba\u8fdb\u884c\u66f4\u7ec6\u81f4\u7684\u5206\u6790\u3002\u5728\u5904\u7406\u56fe\u50cf\u6570\u636e\u65f6\uff0cOCR\u6280\u672f\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b\uff1a\u7efc\u5408\u5e94\u7528\u8bc6\u522b\u4e2d\u6587\u6587\u672c<\/h3>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7efc\u5408\u5e94\u7528\u7684\u793a\u4f8b\uff0c\u7ed3\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u548cjieba\u5e93\u8bc6\u522b\u6587\u672c\u4e2d\u7684\u4e2d\u6587\u5b57\u7b26\uff0c\u5e76\u8fdb\u884c\u5206\u8bcd\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>import jieba<\/p>\n<p>def is_chinese(text):<\/p>\n<p>    pattern = re.compile(r&#39;[\\u4e00-\\u9fa5]+&#39;)<\/p>\n<p>    return pattern.search(text) is not None<\/p>\n<p>def extract_chinese(text):<\/p>\n<p>    pattern = re.compile(r&#39;[\\u4e00-\\u9fa5]+&#39;)<\/p>\n<p>    return pattern.findall(text)<\/p>\n<p>def segment_chinese(text):<\/p>\n<p>    return jieba.lcut(text)<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>sample_text = &quot;\u8fd9\u662f\u4e00\u4e2a\u6d4b\u8bd5\u3002This is a test.&quot;<\/p>\n<p>if is_chinese(sample_text):<\/p>\n<p>    chinese_text = &#39;&#39;.join(extract_chinese(sample_text))<\/p>\n<p>    print(&quot;\u63d0\u53d6\u7684\u4e2d\u6587:&quot;, chinese_text)<\/p>\n<p>    print(&quot;\u5206\u8bcd\u7ed3\u679c:&quot;, segment_chinese(chinese_text))<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u6587\u672c\u4e2d\u4e0d\u5305\u542b\u4e2d\u6587&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u89e3\u91ca\uff1a<\/h3>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u9996\u5148\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u5224\u65ad\u6587\u672c\u4e2d\u662f\u5426\u5305\u542b\u4e2d\u6587\u5b57\u7b26\uff0c\u7136\u540e\u63d0\u53d6\u6240\u6709\u7684\u4e2d\u6587\u5b57\u7b26\uff0c\u5e76\u4f7f\u7528jieba\u8fdb\u884c\u5206\u8bcd\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u8bc6\u522b\u4e2d\u6587\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u5177\u4f53\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u548cUnicode\u7f16\u7801\u8303\u56f4\u5224\u65ad\u9002\u5408\u5feb\u901f\u5224\u65ad\u548c\u7b80\u5355\u7b5b\u9009\uff0cjieba\u5e93\u9002\u5408\u590d\u6742\u7684\u6587\u672c\u5206\u6790\u548c\u5206\u8bcd\u5904\u7406\uff0cOCR\u6280\u672f\u9002\u5408\u56fe\u50cf\u6587\u672c\u8bc6\u522b\u3002\u901a\u8fc7\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u51c6\u786e\u548c\u9ad8\u6548\u7684\u4e2d\u6587\u8bc6\u522b\u3002<\/p>\n<\/p>\n<p><h3>\u7ed3\u8bed<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8bc6\u522b\u4e2d\u6587\u5b57\u7b26\u662f\u4e2d\u6587\u6587\u672c\u5904\u7406\u7684\u57fa\u7840\u3002\u638c\u63e1\u591a\u79cd\u8bc6\u522b\u65b9\u6cd5\uff0c\u4e0d\u4ec5\u80fd\u63d0\u9ad8\u5904\u7406\u6548\u7387\uff0c\u8fd8\u80fd\u5e94\u5bf9\u5404\u79cd\u590d\u6742\u7684\u6587\u672c\u5904\u7406\u4efb\u52a1\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u8bfb\u8005\u80fd\u591f\u5bf9Python\u8bc6\u522b\u4e2d\u6587\u7684\u65b9\u6cd5\u6709\u66f4\u5168\u9762\u7684\u4e86\u89e3\uff0c\u5e76\u80fd\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u7075\u6d3b\u5e94\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8bc6\u522b\u4e2d\u6587\u7684\u5e38\u7528\u5e93\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5e38\u7528\u7684\u4e2d\u6587\u8bc6\u522b\u5e93\u5305\u62ec<code>jieba<\/code>\u3001<code>pandas<\/code>\u3001<code>numpy<\/code>\u4ee5\u53ca<code>sklearn<\/code>\u7b49\u3002<code>jieba<\/code>\u4e3b\u8981\u7528\u4e8e\u4e2d\u6587\u5206\u8bcd\uff0c\u80fd\u591f\u6709\u6548\u5904\u7406\u4e2d\u6587\u6587\u672c\u7684\u5207\u5206\u95ee\u9898\uff0c\u800c<code>pandas<\/code>\u548c<code>numpy<\/code>\u5219\u53ef\u4ee5\u5e2e\u52a9\u8fdb\u884c\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u3002\u5bf9\u4e8e<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u4efb\u52a1\uff0c<code>sklearn<\/code>\u63d0\u4f9b\u4e86\u591a\u79cd\u7b97\u6cd5\uff0c\u53ef\u4ee5\u7528\u4e8e\u4e2d\u6587\u6587\u672c\u5206\u7c7b\u548c\u7279\u5f81\u63d0\u53d6\u3002<\/p>\n<p><strong>Python\u8bc6\u522b\u4e2d\u6587\u9700\u8981\u54ea\u4e9b\u9884\u5904\u7406\u6b65\u9aa4\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u4e2d\u6587\u8bc6\u522b\u4e4b\u524d\uff0c\u901a\u5e38\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u9884\u5904\u7406\u6b65\u9aa4\u3002\u8fd9\u5305\u62ec\u6587\u672c\u6e05\u6d17\uff0c\u5982\u53bb\u9664\u65e0\u7528\u7684\u6807\u70b9\u7b26\u53f7\u548c\u7279\u6b8a\u5b57\u7b26\uff0c\u8f6c\u6362\u4e3a\u7edf\u4e00\u7684\u7f16\u7801\u683c\u5f0f\uff08\u5982UTF-8\uff09\uff0c\u4ee5\u53ca\u5206\u8bcd\u5904\u7406\uff0c\u4ee5\u4fbf\u5c06\u4e2d\u6587\u53e5\u5b50\u5212\u5206\u4e3a\u72ec\u7acb\u7684\u8bcd\u8bed\u3002\u6b64\u5916\uff0c\u505c\u7528\u8bcd\u8fc7\u6ee4\u4e5f\u662f\u91cd\u8981\u7684\u4e00\u73af\uff0c\u53ef\u4ee5\u53bb\u9664\u5bf9\u8bc6\u522b\u7ed3\u679c\u5f71\u54cd\u4e0d\u5927\u7684\u5e38\u7528\u8bcd\u3002<\/p>\n<p><strong>\u5982\u4f55\u63d0\u9ad8Python\u4e2d\u6587\u8bc6\u522b\u7684\u51c6\u786e\u6027\uff1f<\/strong><br \/>\u63d0\u9ad8\u4e2d\u6587\u8bc6\u522b\u51c6\u786e\u6027\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u3002\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u66f4\u5148\u8fdb\u7684\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f\uff0c\u5982\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\uff08\u5982LSTM\u3001BERT\u7b49\uff09\uff0c\u8fd9\u4e9b\u6a21\u578b\u80fd\u591f\u66f4\u597d\u5730\u7406\u89e3\u4e0a\u4e0b\u6587\u5173\u7cfb\u3002\u53e6\u4e00\u4e2a\u65b9\u6cd5\u662f\u4f7f\u7528\u66f4\u4e30\u5bcc\u7684\u8bed\u6599\u5e93\u8fdb\u884c\u8bad\u7ec3\uff0c\u63d0\u9ad8\u6a21\u578b\u7684\u6cdb\u5316\u80fd\u529b\u3002\u6b64\u5916\uff0c\u8fdb\u884c\u8d85\u53c2\u6570\u8c03\u4f18\u548c\u4ea4\u53c9\u9a8c\u8bc1\u4e5f\u662f\u63d0\u5347\u8bc6\u522b\u6548\u679c\u7684\u91cd\u8981\u624b\u6bb5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8bc6\u522b\u4e2d\u6587\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u6bd4\u5982\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001Unicode\u7f16\u7801\u5224\u65ad\u3001\u6216\u8005\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08N [&hellip;]","protected":false},"author":3,"featured_media":1149455,"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\/1149454"}],"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=1149454"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1149454\/revisions"}],"predecessor-version":[{"id":1149456,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1149454\/revisions\/1149456"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1149455"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1149454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1149454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1149454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}