{"id":1139219,"date":"2025-01-08T22:08:03","date_gmt":"2025-01-08T14:08:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1139219.html"},"modified":"2025-01-08T22:08:06","modified_gmt":"2025-01-08T14:08:06","slug":"python%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e8%be%93%e5%85%a5%e6%98%af%e5%90%a6%e4%b8%ba%e6%89%8b%e6%9c%ba%e5%8f%b7%e7%a0%81-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1139219.html","title":{"rendered":"python\u5982\u4f55\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102558\/aca17970-0b6b-4bf8-900b-5bc89961a591.webp\" alt=\"python\u5982\u4f55\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801\" \/><\/p>\n<p><p> <strong>Python\u5982\u4f55\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801\u53ef\u4ee5\u901a\u8fc7<strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u4e13\u95e8\u7684\u9a8c\u8bc1\u5e93<\/strong>\u7b49\u65b9\u6cd5\u3002\u6700\u5e38\u7528\u4e14\u6709\u6548\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u65b9\u6cd5\uff0c\u540c\u65f6\u4e5f\u4f1a\u63a2\u8ba8\u5176\u4ed6\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9\u53ca\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5339\u914d\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u89c4\u5219\u6765\u68c0\u6d4b\u5b57\u7b26\u4e32\u662f\u5426\u7b26\u5408\u7279\u5b9a\u7684\u6a21\u5f0f\u3002\u5728\u5224\u65ad\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801\u65f6\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b9a\u4e49\u6b63\u5219\u8868\u8fbe\u5f0f<\/h4>\n<\/p>\n<p><p>\u4e00\u4e2a\u5e38\u89c1\u7684\u624b\u673a\u53f7\u7801\u6b63\u5219\u8868\u8fbe\u5f0f\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_valid_phone_number(phone_number):<\/p>\n<p>    pattern = r&#39;^1[3-9]\\d{9}$&#39;<\/p>\n<p>    return re.match(pattern, phone_number) is not None<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>^<\/code>\u8868\u793a\u5b57\u7b26\u4e32\u7684\u5f00\u59cb\u3002<\/li>\n<li><code>1<\/code>\u8868\u793a\u624b\u673a\u53f7\u7801\u7684\u5f00\u5934\u5fc5\u987b\u662f1\u3002<\/li>\n<li><code>[3-9]<\/code>\u8868\u793a\u7b2c\u4e8c\u4f4d\u53ef\u4ee5\u662f3\u52309\u4e4b\u95f4\u7684\u4efb\u4e00\u6570\u5b57\u3002<\/li>\n<li><code>\\d{9}<\/code>\u8868\u793a\u63a5\u4e0b\u6765\u76849\u4f4d\u5fc5\u987b\u662f\u6570\u5b57\u3002<\/li>\n<li><code>$<\/code>\u8868\u793a\u5b57\u7b26\u4e32\u7684\u7ed3\u675f\u3002<\/li>\n<\/ul>\n<p><p>\u8fd9\u79cd\u6b63\u5219\u8868\u8fbe\u5f0f\u80fd\u591f\u6709\u6548\u5730\u5224\u65ad\u4e2d\u56fd\u5927\u9646\u7684\u624b\u673a\u53f7\u7801\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u8be6\u7ec6\u4ecb\u7ecd\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u539f\u7406<\/h4>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u80fd\u591f\u901a\u8fc7\u5b9a\u4e49\u4e00\u7cfb\u5217\u5b57\u7b26\u548c\u89c4\u5219\u6765\u5339\u914d\u5b57\u7b26\u4e32\u3002\u5bf9\u4e8e\u624b\u673a\u53f7\u7801\u7684\u5224\u65ad\uff0c\u6211\u4eec\u4e3b\u8981\u5173\u6ce8\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u624b\u673a\u53f7\u7801\u7684\u957f\u5ea6\u662f\u5426\u4e3a11\u4f4d\u3002<\/li>\n<li>\u624b\u673a\u53f7\u7801\u7684\u5f00\u5934\u662f\u5426\u7b26\u5408\u7279\u5b9a\u89c4\u5219\u3002<\/li>\n<li>\u624b\u673a\u53f7\u7801\u7684\u4e2d\u95f4\u90e8\u5206\u662f\u5426\u5168\u4e3a\u6570\u5b57\u3002<\/li>\n<\/ul>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u3001\u76f4\u89c2\uff0c\u4e14\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u9002\u5e94\u4e0d\u540c\u56fd\u5bb6\u6216\u5730\u533a\u7684\u624b\u673a\u53f7\u7801\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5224\u65ad\u624b\u673a\u53f7\u7801\u7684\u4e3b\u8981\u65b9\u6cd5\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u4e5f\u53ef\u4ee5\u5b8c\u6210\u8fd9\u4e00\u4efb\u52a1\u3002\u6bd4\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u548c\u5b57\u7b26\u7ec4\u6210\u6765\u5224\u65ad\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b57\u7b26\u4e32\u957f\u5ea6\u548c\u7ec4\u6210\u5224\u65ad<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def is_valid_phone_number(phone_number):<\/p>\n<p>    if len(phone_number) != 11:<\/p>\n<p>        return False<\/p>\n<p>    if not phone_number.isdigit():<\/p>\n<p>        return False<\/p>\n<p>    if not phone_number.startswith(&#39;1&#39;):<\/p>\n<p>        return False<\/p>\n<p>    if phone_number[1] not in &#39;3456789&#39;:<\/p>\n<p>        return False<\/p>\n<p>    return True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u9010\u4e00\u68c0\u67e5\u6bcf\u4e2a\u6761\u4ef6\u6765\u5224\u65ad\u624b\u673a\u53f7\u7801\u7684\u6709\u6548\u6027\u3002\u867d\u7136\u4e0d\u5982\u6b63\u5219\u8868\u8fbe\u5f0f\u7b80\u6d01\uff0c\u4f46\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\u66f4\u6613\u7406\u89e3\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u63a2\u8ba8\u5b57\u7b26\u4e32\u64cd\u4f5c\u7684\u4f18\u7f3a\u70b9<\/h4>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u64cd\u4f5c\u65b9\u6cd5\u7684\u4f18\u70b9\u5728\u4e8e\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u66f4\u6613\u4e8e\u8c03\u8bd5\u548c\u7406\u89e3\u3002<\/li>\n<li>\u4e0d\u4f9d\u8d56\u4e8e\u5916\u90e8\u5e93\uff0c\u4ec5\u9700\u57fa\u672c\u7684Python\u77e5\u8bc6\u3002<\/li>\n<\/ul>\n<p><p>\u4f46\u5176\u7f3a\u70b9\u662f\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4ee3\u7801\u8f83\u4e3a\u5197\u957f\u3002<\/li>\n<li>\u4e0d\u5982\u6b63\u5219\u8868\u8fbe\u5f0f\u7075\u6d3b\uff0c\u96be\u4ee5\u9002\u5e94\u590d\u6742\u7684\u5339\u914d\u89c4\u5219\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u4e13\u95e8\u7684\u9a8c\u8bc1\u5e93<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4ee5\u4e0a\u4e24\u79cd\u65b9\u6cd5\uff0c\u8fd8\u6709\u4e00\u4e9b\u4e13\u95e8\u7684\u5e93\u53ef\u4ee5\u7528\u4e8e\u9a8c\u8bc1\u624b\u673a\u53f7\u7801\u3002\u4f8b\u5982\uff0c<code>phonenumbers<\/code>\u5e93\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u548c\u9a8c\u8bc1\u56fd\u9645\u7535\u8bdd\u53f7\u7801\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528phonenumbers\u5e93<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import phonenumbers<\/p>\n<p>def is_valid_phone_number(phone_number, region=&quot;CN&quot;):<\/p>\n<p>    try:<\/p>\n<p>        parsed_number = phonenumbers.parse(phone_number, region)<\/p>\n<p>        return phonenumbers.is_valid_number(parsed_number)<\/p>\n<p>    except phonenumbers.phonenumberutil.NumberParseException:<\/p>\n<p>        return False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>phonenumbers<\/code>\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u9a8c\u8bc1\u529f\u80fd\uff0c\u53ef\u4ee5\u5904\u7406\u4e0d\u540c\u56fd\u5bb6\u548c\u5730\u533a\u7684\u624b\u673a\u53f7\u7801\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u8be6\u7ec6\u4ecb\u7ecdphonenumbers\u5e93\u7684\u4f7f\u7528<\/h4>\n<\/p>\n<p><p><code>phonenumbers<\/code>\u5e93\u7684\u4f18\u70b9\u5728\u4e8e\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u80fd\u591f\u5904\u7406\u56fd\u9645\u5316\u7684\u624b\u673a\u53f7\u7801\u683c\u5f0f\u3002<\/li>\n<li>\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5982\u53f7\u7801\u683c\u5f0f\u5316\u3001\u5730\u533a\u4ee3\u7801\u89e3\u6790\u7b49\u3002<\/li>\n<\/ul>\n<p><p>\u4f46\u5176\u7f3a\u70b9\u662f\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9700\u8981\u5b89\u88c5\u5916\u90e8\u5e93\u3002<\/li>\n<li>\u5bf9\u7b80\u5355\u7684\u9a8c\u8bc1\u4efb\u52a1\u6765\u8bf4\u53ef\u80fd\u6709\u4e9b\u8fc7\u4e8e\u590d\u6742\u3002<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801\u4e0d\u4ec5\u4ec5\u662f\u6280\u672f\u4e0a\u7684\u95ee\u9898\uff0c\u8fd8\u9700\u8981\u8003\u8651\u7528\u6237\u4f53\u9a8c\u548c\u6570\u636e\u5b89\u5168\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u7528\u6237\u4f53\u9a8c<\/h4>\n<\/p>\n<p><p>\u5728\u7528\u6237\u8f93\u5165\u624b\u673a\u53f7\u7801\u65f6\uff0c\u5e94\u8be5\u63d0\u4f9b\u5b9e\u65f6\u7684\u53cd\u9988\uff0c\u63d0\u793a\u7528\u6237\u8f93\u5165\u7684\u53f7\u7801\u662f\u5426\u6709\u6548\u3002\u53ef\u4ee5\u901a\u8fc7\u524d\u7aef\u548c\u540e\u7aef\u7684\u53cc\u91cd\u9a8c\u8bc1\u6765\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u6570\u636e\u5b89\u5168<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u65f6\uff0c\u5fc5\u987b\u6ce8\u610f\u6570\u636e\u7684\u5b89\u5168\u6027\u3002\u4f8b\u5982\uff0c\u907f\u514d\u624b\u673a\u53f7\u7801\u88ab\u975e\u6cd5\u83b7\u53d6\u548c\u4f7f\u7528\uff0c\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\u6027\u7b49\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u591a\u5c42\u6b21\u9a8c\u8bc1<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u683c\u5f0f\u9a8c\u8bc1\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001\u9a8c\u8bc1\u7801\u7b49\u65b9\u5f0f\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u9a8c\u8bc1\uff0c\u786e\u4fdd\u8f93\u5165\u7684\u624b\u673a\u53f7\u7801\u771f\u5b9e\u6709\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u5728Python\u4e2d\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801\u7684\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec<strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u4e13\u95e8\u7684\u9a8c\u8bc1\u5e93<\/strong>\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u5e76\u7ed3\u5408\u7528\u6237\u4f53\u9a8c\u548c\u6570\u636e\u5b89\u5168\u7b49\u65b9\u9762\u7684\u8003\u8651\uff0c\u63d0\u4f9b\u5168\u9762\u7684\u9a8c\u8bc1\u65b9\u6848\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u9a8c\u8bc1\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u6709\u6548\u7684\u624b\u673a\u53f7\u7801\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757<code>re<\/code>\u6765\u9a8c\u8bc1\u624b\u673a\u53f7\u7801\u3002\u901a\u5e38\uff0c\u624b\u673a\u53f7\u7801\u7684\u683c\u5f0f\u5305\u62ec\u56fd\u5bb6\u4ee3\u7801\u548c\u7279\u5b9a\u7684\u6570\u5b57\u957f\u5ea6\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u6765\u5b8c\u6210\u8fd9\u4e2a\u9a8c\u8bc1\uff1a<\/p>\n<pre><code class=\"language-python\">import re\n\ndef is_valid_phone_number(phone_number):\n    pattern = re.compile(r&#39;^\\+?\\d{1,3}[- ]?\\d{10}$&#39;)  # \u4f8b\u5b50: +86 13812345678\n    return bool(pattern.match(phone_number))\n\n# \u793a\u4f8b\nphone = &quot;+86 13812345678&quot;\nprint(is_valid_phone_number(phone))  # \u8f93\u51fa: True\n<\/code><\/pre>\n<p><strong>\u624b\u673a\u53f7\u7801\u7684\u6709\u6548\u6027\u5224\u65ad\u6709\u4ec0\u4e48\u6ce8\u610f\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u5224\u65ad\u624b\u673a\u53f7\u7801\u7684\u6709\u6548\u6027\u65f6\uff0c\u8981\u8003\u8651\u4e0d\u540c\u56fd\u5bb6\u7684\u53f7\u7801\u683c\u5f0f\u3002\u67d0\u4e9b\u56fd\u5bb6\u7684\u624b\u673a\u53f7\u7801\u53ef\u80fd\u4ee5\u7279\u5b9a\u7684\u524d\u7f00\u5f00\u5934\u6216\u6709\u4e0d\u540c\u7684\u4f4d\u6570\u3002\u4f8b\u5982\uff0c\u4e2d\u56fd\u7684\u624b\u673a\u53f7\u7801\u901a\u5e38\u4ee51\u5f00\u5934\uff0c\u540e\u9762\u8ddf\u968f10\u4f4d\u6570\u5b57\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u8c03\u6574\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n<p><strong>\u6709\u54ea\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u624b\u673a\u53f7\u7801\u683c\u5f0f\u95ee\u9898\uff1f<\/strong><br \/>\u4e3a\u4e86\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\uff0c\u53ef\u4ee5\u5728\u8f93\u5165\u624b\u673a\u53f7\u7801\u4e4b\u524d\uff0c\u63d0\u793a\u7528\u6237\u8f93\u5165\u6b63\u786e\u7684\u683c\u5f0f\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u5904\u7406\u51fd\u6570\uff0c\u53bb\u9664\u7a7a\u683c\u3001\u8fde\u5b57\u7b26\u548c\u5176\u4ed6\u975e\u6570\u5b57\u5b57\u7b26\uff0c\u4f7f\u5f97\u8f93\u5165\u66f4\u4e3a\u4e00\u81f4\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">def clean_phone_number(phone_number):\n    return re.sub(r&#39;\\D&#39;, &#39;&#39;, phone_number)  # \u53bb\u9664\u975e\u6570\u5b57\u5b57\u7b26\n\n# \u793a\u4f8b\nraw_phone = &quot;138-1234-5678&quot;\ncleaned_phone = clean_phone_number(raw_phone)\nprint(cleaned_phone)  # \u8f93\u51fa: 13812345678\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6709\u6548\u5904\u7406\u4e0d\u540c\u8f93\u5165\u683c\u5f0f\u7684\u624b\u673a\u53f7\u7801\uff0c\u63d0\u9ad8\u9a8c\u8bc1\u7684\u51c6\u786e\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5982\u4f55\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801 \u5728Python\u4e2d\u5224\u65ad\u8f93\u5165\u662f\u5426\u4e3a\u624b\u673a\u53f7\u7801\u53ef\u4ee5\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1139231,"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\/1139219"}],"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=1139219"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1139219\/revisions"}],"predecessor-version":[{"id":1139237,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1139219\/revisions\/1139237"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1139231"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1139219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1139219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1139219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}