{"id":1130908,"date":"2025-01-08T20:44:15","date_gmt":"2025-01-08T12:44:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1130908.html"},"modified":"2025-01-08T20:44:18","modified_gmt":"2025-01-08T12:44:18","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8python%e5%af%b9%e4%b8%ad%e6%96%87%e5%ad%97%e7%ac%a6%e8%bf%9b%e8%a1%8c%e7%b4%a2%e5%bc%95","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1130908.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528python\u5bf9\u4e2d\u6587\u5b57\u7b26\u8fdb\u884c\u7d22\u5f15"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100838\/da7e6f1f-225e-4110-b570-1eba622fbba4.webp\" alt=\"\u5982\u4f55\u4f7f\u7528python\u5bf9\u4e2d\u6587\u5b57\u7b26\u8fdb\u884c\u7d22\u5f15\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5bf9\u4e2d\u6587\u5b57\u7b26\u8fdb\u884c\u7d22\u5f15\u7684\u65b9\u6cd5<\/strong>\u5305\u62ec\uff1a\u4f7f\u7528Python\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u5904\u7406\u529f\u80fd\u3001\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\u5982jieba\u7b49\u3002<strong>Python\u5185\u7f6e\u5b57\u7b26\u4e32\u5904\u7406\u529f\u80fd<\/strong>\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3aPython\u7684\u5b57\u7b26\u4e32\u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u5b57\u7b26\u5e8f\u5217\uff0c\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u76f4\u63a5\u8bbf\u95ee\u6bcf\u4e2a\u5b57\u7b26\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5229\u7528Python\u5185\u7f6e\u5b57\u7b26\u4e32\u5904\u7406\u529f\u80fd\u5bf9\u4e2d\u6587\u5b57\u7b26\u8fdb\u884c\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><p>Python\u5185\u7f6e\u5b57\u7b26\u4e32\u5904\u7406\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u652f\u6301\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u5207\u7247\u3001\u904d\u5386\u3001\u67e5\u627e\u7b49\u64cd\u4f5c\u3002\u5bf9\u4e8e\u4e2d\u6587\u5b57\u7b26\uff0c\u7531\u4e8ePython 3\u9ed8\u8ba4\u4f7f\u7528Unicode\u7f16\u7801\uff0c\u56e0\u6b64\u80fd\u591f\u5f88\u597d\u5730\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u3002\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u7d22\u5f15\u548c\u5207\u7247\u529f\u80fd\u6765\u83b7\u53d6\u4e2d\u6587\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32\u201c\u4f60\u597d\uff0c\u4e16\u754c\u201d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7d22\u5f15\u6765\u83b7\u53d6\u7279\u5b9a\u4f4d\u7f6e\u7684\u5b57\u7b26\uff0c\u6216\u4f7f\u7528\u5207\u7247\u83b7\u53d6\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Python\u5b57\u7b26\u4e32\u7d22\u5f15<\/h3>\n<\/p>\n<p><p>Python\u5b57\u7b26\u4e32\u7684\u7d22\u5f15\u529f\u80fd\u53ef\u4ee5\u7528\u4e8e\u76f4\u63a5\u8bbf\u95ee\u7279\u5b9a\u4f4d\u7f6e\u7684\u5b57\u7b26\u3002\u7531\u4e8ePython\u652f\u6301Unicode\uff0c\u56e0\u6b64\u53ef\u4ee5\u65e0\u7f1d\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b57\u7b26\u7d22\u5f15<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u7d22\u5f15\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u4e2a\u5b57\u7b26\u3002\u5b57\u7b26\u4e32\u7684\u7d22\u5f15\u4ece0\u5f00\u59cb\uff0c\u8d1f\u7d22\u5f15\u4ece\u5b57\u7b26\u4e32\u672b\u5c3e\u5f00\u59cb\u8ba1\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;\u4f60\u597d\uff0c\u4e16\u754c&quot;<\/p>\n<p>print(text[0])  # \u8f93\u51fa\uff1a\u4f60<\/p>\n<p>print(text[-1])  # \u8f93\u51fa\uff1a\u754c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b57\u7b26\u5207\u7247<\/h4>\n<\/p>\n<p><p>\u5207\u7247\u5141\u8bb8\u6211\u4eec\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u5b50\u5b57\u7b26\u4e32\u3002\u901a\u8fc7\u6307\u5b9a\u8d77\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u83b7\u53d6\u4e00\u6bb5\u5b57\u7b26\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(text[1:3])  # \u8f93\u51fa\uff1a\u597d\uff0c<\/p>\n<p>print(text[:2])  # \u8f93\u51fa\uff1a\u4f60\u597d<\/p>\n<p>print(text[3:])  # \u8f93\u51fa\uff1a\u4e16\u754c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5339\u914d\u548c\u5904\u7406\u3002Python\u5185\u7f6e\u7684re\u6a21\u5757\u63d0\u4f9b\u4e86\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<p><h4>1. \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u7528\u4e8e\u67e5\u627e\u548c\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u6a21\u5f0f\u3002\u4f8b\u5982\uff0c\u67e5\u627e\u6240\u6709\u7684\u4e2d\u6587\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;\u4f60\u597d\uff0c\u4e16\u754c&quot;<\/p>\n<p>pattern = re.compile(r&#39;[\\u4e00-\\u9fa5]&#39;)  # \u5339\u914d\u6240\u6709\u4e2d\u6587\u5b57\u7b26<\/p>\n<p>matches = pattern.findall(text)<\/p>\n<p>print(matches)  # \u8f93\u51fa\uff1a[&#39;\u4f60&#39;, &#39;\u597d&#39;, &#39;\u4e16&#39;, &#39;\u754c&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b57\u7b26\u4e32\u66ff\u6362<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5b57\u7b26\u4e32\u66ff\u6362\u3002\u4f8b\u5982\uff0c\u5c06\u6240\u6709\u7684\u4e2d\u6587\u5b57\u7b26\u66ff\u6362\u4e3a\u201c*\u201d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">replaced_text = pattern.sub(&#39;*&#39;, text)<\/p>\n<p>print(replaced_text)  # \u8f93\u51fa\uff1a&lt;strong&gt;\uff0c&lt;\/strong&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/h3>\n<\/p>\n<p><p>\u9664\u4e86Python\u5185\u7f6e\u7684\u529f\u80fd\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u65b9\u4fbf\u5730\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u3002\u4f8b\u5982\uff0cjieba\u5e93\u53ef\u4ee5\u7528\u4e8e\u4e2d\u6587\u5206\u8bcd\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5904\u7406\u4e2d\u6587\u6587\u672c\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5jieba<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5jieba\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install jieba<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528jieba\u8fdb\u884c\u5206\u8bcd<\/h4>\n<\/p>\n<p><p>jieba\u5e93\u53ef\u4ee5\u5c06\u4e2d\u6587\u6587\u672c\u5206\u5272\u6210\u8bcd\u8bed\uff0c\u4ece\u800c\u4fbf\u4e8e\u8fdb\u4e00\u6b65\u5904\u7406\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import jieba<\/p>\n<p>text = &quot;\u4f60\u597d\uff0c\u4e16\u754c&quot;<\/p>\n<p>words = jieba.lcut(text)<\/p>\n<p>print(words)  # \u8f93\u51fa\uff1a[&#39;\u4f60\u597d&#39;, &#39;\uff0c&#39;, &#39;\u4e16\u754c&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u7684\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u65f6\uff0c\u6709\u4e00\u4e9b\u6ce8\u610f\u4e8b\u9879\u9700\u8981\u7559\u610f\uff0c\u4ee5\u907f\u514d\u51fa\u73b0\u7f16\u7801\u95ee\u9898\u6216\u5176\u4ed6\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h4>1. \u7f16\u7801\u95ee\u9898<\/h4>\n<\/p>\n<p><p>\u786e\u4fdd\u4f7f\u7528Python 3\uff0c\u56e0\u4e3aPython 3\u9ed8\u8ba4\u4f7f\u7528Unicode\u7f16\u7801\uff0c\u53ef\u4ee5\u5f88\u597d\u5730\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u3002\u5982\u679c\u5fc5\u987b\u4f7f\u7528Python 2\uff0c\u9700\u8981\u663e\u5f0f\u5730\u58f0\u660e\u7f16\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># -*- coding: utf-8 -*-<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b57\u7b26\u957f\u5ea6<\/h4>\n<\/p>\n<p><p>\u4e2d\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u901a\u5e38\u4e3a1\uff0c\u4f46\u67d0\u4e9b\u590d\u5408\u5b57\u7b26\u53ef\u80fd\u4f1a\u5360\u7528\u591a\u4e2a\u5b57\u8282\u3002\u5728\u5904\u7406\u5b57\u7b26\u4e32\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u5b57\u7b26\u7684\u5b9e\u9645\u957f\u5ea6\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;\u4f60\u597d\uff0c\u4e16\u754c&quot;<\/p>\n<p>print(len(text))  # \u8f93\u51fa\uff1a6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5b57\u7b26\u4e32\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u5b57\u7b26\u4e32\u64cd\u4f5c\u65f6\uff0c\u5c3d\u91cf\u4f7f\u7528Python\u5185\u7f6e\u7684\u51fd\u6570\u548c\u65b9\u6cd5\uff0c\u4ee5\u786e\u4fdd\u64cd\u4f5c\u7684\u6548\u7387\u548c\u6b63\u786e\u6027\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u7684split\u65b9\u6cd5\u8fdb\u884c\u5206\u5272\uff0c\u800c\u4e0d\u662f\u624b\u52a8\u904d\u5386\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">words = text.split(&#39;\uff0c&#39;)<\/p>\n<p>print(words)  # \u8f93\u51fa\uff1a[&#39;\u4f60\u597d&#39;, &#39;\u4e16\u754c&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5b9e\u6218\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u5982\u4f55\u4f7f\u7528Python\u5bf9\u4e2d\u6587\u5b57\u7b26\u8fdb\u884c\u7d22\u5f15\uff0c\u6211\u4eec\u901a\u8fc7\u4e00\u4e2a\u5b9e\u6218\u793a\u4f8b\u6765\u6f14\u793a\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\uff1a\u7edf\u8ba1\u4e2d\u6587\u6587\u672c\u4e2d\u7684\u5b57\u7b26\u9891\u7387<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u5c06\u7edf\u8ba1\u4e00\u6bb5\u4e2d\u6587\u6587\u672c\u4e2d\u6bcf\u4e2a\u5b57\u7b26\u51fa\u73b0\u7684\u9891\u7387\uff0c\u5e76\u6309\u9891\u7387\u6392\u5e8f\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import Counter<\/p>\n<p>import jieba<\/p>\n<p>text = &quot;\u4f60\u597d\uff0c\u4e16\u754c\u3002\u4f60\u597d\uff0cPython\u3002&quot;<\/p>\n<h2><strong>\u4f7f\u7528jieba\u8fdb\u884c\u5206\u8bcd<\/strong><\/h2>\n<p>words = jieba.lcut(text)<\/p>\n<h2><strong>\u5c06\u8bcd\u8bed\u62fc\u63a5\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>all_chars = &#39;&#39;.join(words)<\/p>\n<h2><strong>\u7edf\u8ba1\u6bcf\u4e2a\u5b57\u7b26\u7684\u9891\u7387<\/strong><\/h2>\n<p>char_counter = Counter(all_chars)<\/p>\n<h2><strong>\u6309\u9891\u7387\u6392\u5e8f\u8f93\u51fa\u7ed3\u679c<\/strong><\/h2>\n<p>sorted_chars = sorted(char_counter.items(), key=lambda x: x[1], descending=True)<\/p>\n<p>for char, freq in sorted_chars:<\/p>\n<p>    print(f&quot;{char}: {freq}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Python\u5bf9\u4e2d\u6587\u5b57\u7b26\u8fdb\u884c\u7d22\u5f15\uff0c\u5305\u62ec\u4f7f\u7528Python\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u5904\u7406\u529f\u80fd\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u7b2c\u4e09\u65b9\u5e93\u5982jieba\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u548c\u64cd\u4f5c\u4e2d\u6587\u5b57\u7b26\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528Python\u8fdb\u884c\u4e2d\u6587\u5b57\u7b26\u7684\u5904\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u7684\u7d22\u5f15\u95ee\u9898\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u7684\u7d22\u5f15\u4e3b\u8981\u4f9d\u8d56\u4e8e\u5b57\u7b26\u4e32\u7684\u5207\u7247\u548c\u7d22\u5f15\u529f\u80fd\u3002Python\u7684\u5b57\u7b26\u4e32\u662f\u4ee5Unicode\u7f16\u7801\u7684\uff0c\u56e0\u6b64\u53ef\u4ee5\u76f4\u63a5\u5bf9\u4e2d\u6587\u5b57\u7b26\u8fdb\u884c\u7d22\u5f15\u3002\u4f7f\u7528<code>string[index]<\/code>\u7684\u65b9\u5f0f\u53ef\u4ee5\u83b7\u53d6\u7279\u5b9a\u4f4d\u7f6e\u7684\u5b57\u7b26\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e2d\u6587\u5b57\u7b26\u53ef\u80fd\u5360\u7528\u591a\u4e2a\u5b57\u8282\uff0c\u4f46Python\u4f1a\u81ea\u52a8\u5904\u7406\u8fd9\u4e9b\u7ec6\u8282\uff0c\u4f7f\u5f97\u7d22\u5f15\u64cd\u4f5c\u4ecd\u7136\u6709\u6548\u3002<\/p>\n<p><strong>\u5bf9\u4e8e\u4e2d\u6587\u5b57\u7b26\u4e32\uff0c\u5982\u4f55\u5224\u65ad\u7279\u5b9a\u5b57\u7b26\u662f\u5426\u5b58\u5728\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>in<\/code>\u5173\u952e\u5b57\u6765\u5224\u65ad\u4e00\u4e2a\u7279\u5b9a\u7684\u4e2d\u6587\u5b57\u7b26\u662f\u5426\u5b58\u5728\u4e8e\u5b57\u7b26\u4e32\u4e2d\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>if &#39;\u5b57\u7b26&#39; in &#39;\u4e2d\u6587\u5b57\u7b26\u4e32&#39;:<\/code>\u6765\u68c0\u67e5\u3002\u5982\u679c\u5b58\u5728\uff0c\u8fd4\u56deTrue\uff1b\u5426\u5219\u8fd4\u56deFalse\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\u4e14\u6613\u4e8e\u7406\u89e3\uff0c\u9002\u7528\u4e8e\u5feb\u901f\u67e5\u627e\u3002<\/p>\n<p><strong>\u5982\u4f55\u83b7\u53d6\u4e2d\u6587\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff0c\u5305\u542b\u4e2d\u6587\u5b57\u7b26\u548c\u7a7a\u683c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>len()<\/code>\u51fd\u6570\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002\u6b64\u51fd\u6570\u4f1a\u51c6\u786e\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u6570\u91cf\uff0c\u5305\u62ec\u4e2d\u6587\u5b57\u7b26\u548c\u7a7a\u683c\u3002\u4f8b\u5982\uff0c<code>len(&#39;\u8fd9\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32&#39;)<\/code>\u4f1a\u8fd4\u56de6\uff0c\u51c6\u786e\u53cd\u6620\u51fa\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u7684\u5b57\u7b26\u6570\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u957f\u5ea6\u7edf\u8ba1\u662f\u4ee5\u5b57\u7b26\u4e3a\u5355\u4f4d\uff0c\u800c\u4e0d\u662f\u5b57\u8282\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5bf9\u4e2d\u6587\u5b57\u7b26\u8fdb\u884c\u7d22\u5f15\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Python\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u5904\u7406\u529f\u80fd\u3001\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u501f\u52a9\u7b2c\u4e09\u65b9 [&hellip;]","protected":false},"author":3,"featured_media":1130917,"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\/1130908"}],"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=1130908"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1130908\/revisions"}],"predecessor-version":[{"id":1130918,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1130908\/revisions\/1130918"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1130917"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1130908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1130908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1130908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}