{"id":982758,"date":"2024-12-27T07:13:34","date_gmt":"2024-12-26T23:13:34","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/982758.html"},"modified":"2024-12-27T07:13:36","modified_gmt":"2024-12-26T23:13:36","slug":"%e5%a6%82%e4%bd%95%e6%8a%8a%e6%96%87%e6%9c%ac%e6%94%b9%e4%b8%bapython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/982758.html","title":{"rendered":"\u5982\u4f55\u628a\u6587\u672c\u6539\u4e3apython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211112\/6b2e92fc-9ed7-495d-aecc-1d75feca1490.webp\" alt=\"\u5982\u4f55\u628a\u6587\u672c\u6539\u4e3apython\" \/><\/p>\n<p><p> <strong>\u8981\u5c06\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u89e3\u6790\u3001\u6a21\u677f\u5339\u914d\u7b49\u65b9\u6cd5<\/strong>\uff0c\u5176\u4e2d<strong>\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f<\/strong>\u5c24\u5176\u9002\u7528\u4e8e\u8f83\u590d\u6742\u7684\u6587\u672c\u8f6c\u6362\u3002\u81ea\u7136\u8bed\u8a00\u5904\u7406\u53ef\u4ee5\u901a\u8fc7\u8bad\u7ec3\u6a21\u578b\u8bc6\u522b\u6587\u672c\u4e2d\u7684\u5173\u952e\u5b57\u548c\u7ed3\u6784\uff0c\u7136\u540e\u5c06\u5176\u6620\u5c04\u5230Python\u4ee3\u7801\u7684\u76f8\u5e94\u7ed3\u6784\u4e2d\u3002\u4ee5\u4e0b\u662f\u5bf9\u81ea\u7136\u8bed\u8a00\u5904\u7406\u65b9\u6cd5\u7684\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><p>\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u662f\u8ba1\u7b97\u673a\u79d1\u5b66\u3001<a href=\"https:\/\/docs.pingcode.com\/tag\/AI\" target=\"_blank\">\u4eba\u5de5\u667a\u80fd<\/a>\u548c\u8bed\u8a00\u5b66\u7684\u4ea4\u53c9\u9886\u57df\uff0c\u65e8\u5728\u8ba9\u8ba1\u7b97\u673a\u7406\u89e3\u548c\u5904\u7406\u4eba\u7c7b\u8bed\u8a00\u3002\u5728\u5c06\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\u7684\u8fc7\u7a0b\u4e2d\uff0cNLP\u6280\u672f\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u6587\u672c\u4e2d\u7684\u547d\u4ee4\u3001\u6570\u636e\u7c7b\u578b\u3001\u64cd\u4f5c\u7b26\u7b49\uff0c\u5e76\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\u751f\u6210\u76f8\u5e94\u7684\u4ee3\u7801\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5206\u8bcd\u3001\u8bcd\u6027\u6807\u6ce8\u3001\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u3001\u53e5\u6cd5\u5206\u6790\u7b49\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e00\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f<\/h2>\n<\/p>\n<p><h3>1. \u5206\u8bcd\u548c\u8bcd\u6027\u6807\u6ce8<\/h3>\n<\/p>\n<p><p>\u5206\u8bcd\u662f\u5c06\u6587\u672c\u5206\u89e3\u4e3a\u5355\u8bcd\u6216\u8bcd\u7ec4\u7684\u8fc7\u7a0b\uff0c\u800c\u8bcd\u6027\u6807\u6ce8\u5219\u662f\u4e3a\u6bcf\u4e2a\u5355\u8bcd\u5206\u914d\u4e00\u4e2a\u8bcd\u6027\u6807\u7b7e\u3002\u901a\u8fc7\u8fd9\u4e24\u4e2a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u8bc6\u522b\u51fa\u6587\u672c\u4e2d\u7684\u540d\u8bcd\u3001\u52a8\u8bcd\u3001\u5f62\u5bb9\u8bcd\u7b49\uff0c\u4ee5\u53ca\u5b83\u4eec\u5728\u53e5\u5b50\u4e2d\u7684\u529f\u80fd\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528NLTK\u5e93\u8fdb\u884c\u5206\u8bcd\u548c\u8bcd\u6027\u6807\u6ce8\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import nltk<\/p>\n<p>nltk.download(&#39;punkt&#39;)<\/p>\n<p>nltk.download(&#39;averaged_perceptron_tagger&#39;)<\/p>\n<p>text = &quot;Calculate the sum of numbers from 1 to 10.&quot;<\/p>\n<p>tokens = nltk.word_tokenize(text)<\/p>\n<p>tagged = nltk.pos_tag(tokens)<\/p>\n<p>print(tagged)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6587\u672c\u5206\u5272\u6210\u5355\u8bcd\uff0c\u5e76\u4e3a\u6bcf\u4e2a\u5355\u8bcd\u6807\u8bb0\u8bcd\u6027\uff0c\u4ece\u800c\u5e2e\u52a9\u540e\u7eed\u7684\u4ee3\u7801\u751f\u6210\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>2. \u547d\u540d\u5b9e\u4f53\u8bc6\u522b<\/h3>\n<\/p>\n<p><p>\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\uff08NER\uff09\u662f\u8bc6\u522b\u6587\u672c\u4e2d\u547d\u540d\u5b9e\u4f53\uff08\u5982\u4eba\u540d\u3001\u5730\u540d\u3001\u7ec4\u7ec7\u540d\u3001\u6570\u503c\u7b49\uff09\u7684\u6280\u672f\u3002\u5728\u6587\u672c\u8f6c\u4ee3\u7801\u8fc7\u7a0b\u4e2d\uff0cNER\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u53d8\u91cf\u540d\u3001\u51fd\u6570\u540d\u3001\u6570\u503c\u7b49\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6587\u672c\u4e2d\u5305\u542b\u201c\u4ece1\u523010\u201d\uff0cNER\u53ef\u4ee5\u8bc6\u522b\u51fa\u201c1\u201d\u548c\u201c10\u201d\u4f5c\u4e3a\u6570\u503c\u3002<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0cspaCy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8eNER\u4efb\u52a1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import spacy<\/p>\n<p>nlp = spacy.load(&quot;en_core_web_sm&quot;)<\/p>\n<p>doc = nlp(&quot;Calculate the sum of numbers from 1 to 10.&quot;)<\/p>\n<p>for ent in doc.ents:<\/p>\n<p>    print(ent.text, ent.label_)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u63d0\u53d6\u6587\u672c\u4e2d\u7684\u547d\u540d\u5b9e\u4f53\uff0c\u5e76\u6807\u8bb0\u5176\u7c7b\u578b\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e8c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u89e3\u6790<\/h2>\n<\/p>\n<p><h3>1. \u57fa\u672c\u6982\u5ff5<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\uff08regex\uff09\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u6587\u672c\u641c\u7d22\u548c\u5339\u914d\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u8bc6\u522b\u6587\u672c\u4e2d\u7684\u7279\u5b9a\u6a21\u5f0f\u3002\u5728\u6587\u672c\u8f6c\u4ee3\u7801\u8fc7\u7a0b\u4e2d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u7528\u4e8e\u5339\u914d\u5e38\u89c1\u7684\u7f16\u7a0b\u7ed3\u6784\uff0c\u5982\u53d8\u91cf\u8d4b\u503c\u3001\u51fd\u6570\u5b9a\u4e49\u3001\u5faa\u73af\u7b49\u3002<\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u89e3\u6790\u6587\u672c<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u4ece\u6587\u672c\u4e2d\u63d0\u53d6\u51fa\u5173\u952e\u7684\u64cd\u4f5c\u7b26\u548c\u53d8\u91cf\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7b80\u5355\u7684\u8d4b\u503c\u8bed\u53e5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;Set the variable x to 5.&quot;<\/p>\n<p>pattern = r&quot;Set the variable (\\w+) to (\\d+).&quot;<\/p>\n<p>match = re.match(pattern, text)<\/p>\n<p>if match:<\/p>\n<p>    variable, value = match.groups()<\/p>\n<p>    code = f&quot;{variable} = {value}&quot;<\/p>\n<p>    print(code)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6587\u672c\u89e3\u6790\u4e3aPython\u8d4b\u503c\u8bed\u53e5\uff0c\u5e76\u751f\u6210\u76f8\u5e94\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e09\u3001\u6a21\u677f\u5339\u914d<\/h2>\n<\/p>\n<p><h3>1. \u6a21\u677f\u7684\u6982\u5ff5<\/h3>\n<\/p>\n<p><p>\u6a21\u677f\u5339\u914d\u662f\u4e00\u79cd\u57fa\u4e8e\u9884\u5b9a\u4e49\u683c\u5f0f\u7684\u6587\u672c\u89e3\u6790\u65b9\u6cd5\u3002\u901a\u8fc7\u5b9a\u4e49\u5e38\u89c1\u7684\u6587\u672c\u6a21\u5f0f\u548c\u5bf9\u5e94\u7684\u4ee3\u7801\u6a21\u677f\uff0c\u53ef\u4ee5\u5feb\u901f\u5c06\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528\u6a21\u677f\u5339\u914d\u751f\u6210\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u6a21\u677f\u5339\u914d\u65f6\uff0c\u53ef\u4ee5\u4e3a\u5e38\u89c1\u7684\u81ea\u7136\u8bed\u8a00\u547d\u4ee4\u5b9a\u4e49\u76f8\u5e94\u7684\u4ee3\u7801\u751f\u6210\u89c4\u5219\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def text_to_code(text):<\/p>\n<p>    if &quot;sum of numbers from&quot; in text:<\/p>\n<p>        return &quot;sum(range(1, 11))&quot;<\/p>\n<p>    elif &quot;set the variable&quot; in text:<\/p>\n<p>        parts = text.split()<\/p>\n<p>        return f&quot;{parts[3]} = {parts[-1]}&quot;<\/p>\n<p>    else:<\/p>\n<p>        return &quot;&quot;<\/p>\n<p>text1 = &quot;Calculate the sum of numbers from 1 to 10.&quot;<\/p>\n<p>text2 = &quot;Set the variable x to 5.&quot;<\/p>\n<p>print(text_to_code(text1))<\/p>\n<p>print(text_to_code(text2))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u901a\u8fc7\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5339\u914d\uff0c\u5c06\u7279\u5b9a\u7684\u6587\u672c\u6a21\u5f0f\u8f6c\u6362\u4e3aPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u56db\u3001\u7ed3\u5408\u591a\u79cd\u6280\u672f<\/h2>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5c06\u591a\u79cd\u6280\u672f\u7ed3\u5408\u4f7f\u7528\u53ef\u4ee5\u63d0\u9ad8\u6587\u672c\u8f6c\u4ee3\u7801\u7684\u51c6\u786e\u6027\u548c\u7075\u6d3b\u6027\u3002\u901a\u8fc7\u7ed3\u5408\u81ea\u7136\u8bed\u8a00\u5904\u7406\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u6a21\u677f\u5339\u914d\uff0c\u53ef\u4ee5\u5904\u7406\u66f4\u590d\u6742\u7684\u6587\u672c\u5e76\u751f\u6210\u66f4\u51c6\u786e\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>1. \u7efc\u5408\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7efc\u5408\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u7ed3\u5408\u591a\u79cd\u6280\u672f\u5c06\u590d\u6742\u7684\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>import spacy<\/p>\n<p>nlp = spacy.load(&quot;en_core_web_sm&quot;)<\/p>\n<p>def complex_text_to_code(text):<\/p>\n<p>    doc = nlp(text)<\/p>\n<p>    if &quot;sum of numbers&quot; in text:<\/p>\n<p>        numbers = [ent.text for ent in doc.ents if ent.label_ == &quot;CARDINAL&quot;]<\/p>\n<p>        if len(numbers) == 2:<\/p>\n<p>            return f&quot;sum(range({numbers[0]}, {int(numbers[1])+1}))&quot;<\/p>\n<p>    elif re.match(r&quot;Set the variable (\\w+) to (\\d+)&quot;, text):<\/p>\n<p>        match = re.match(r&quot;Set the variable (\\w+) to (\\d+)&quot;, text)<\/p>\n<p>        variable, value = match.groups()<\/p>\n<p>        return f&quot;{variable} = {value}&quot;<\/p>\n<p>    else:<\/p>\n<p>        return &quot;&quot;<\/p>\n<p>text1 = &quot;Calculate the sum of numbers from 1 to 10.&quot;<\/p>\n<p>text2 = &quot;Set the variable x to 5.&quot;<\/p>\n<p>print(complex_text_to_code(text1))<\/p>\n<p>print(complex_text_to_code(text2))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u667a\u80fd\u7684\u6587\u672c\u89e3\u6790\u548c\u4ee3\u7801\u751f\u6210\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e94\u3001\u6311\u6218\u4e0e\u672a\u6765<\/h2>\n<\/p>\n<p><h3>1. \u6311\u6218<\/h3>\n<\/p>\n<p><p>\u5c06\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4ecd\u5b58\u5728\u8bb8\u591a\u6311\u6218\u3002\u81ea\u7136\u8bed\u8a00\u7684\u591a\u6837\u6027\u548c\u6a21\u7cca\u6027\u4f7f\u5f97\u51c6\u786e\u89e3\u6790\u548c\u8f6c\u6362\u53d8\u5f97\u56f0\u96be\u3002\u6b64\u5916\uff0c\u4ee3\u7801\u7684\u590d\u6742\u6027\u548c\u7279\u5b9a\u7684\u8bed\u6cd5\u89c4\u5219\u4e5f\u589e\u52a0\u4e86\u5b9e\u73b0\u7684\u96be\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>2. \u672a\u6765\u53d1\u5c55<\/h3>\n<\/p>\n<p><p>\u968f\u7740\u4eba\u5de5\u667a\u80fd\u548c\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u672a\u6765\u5c06\u6709\u66f4\u591a\u5148\u8fdb\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u7528\u4e8e\u6587\u672c\u8f6c\u4ee3\u7801\u4efb\u52a1\u3002\u7279\u522b\u662f\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u7684\u5e94\u7528\uff0c\u5c06\u8fdb\u4e00\u6b65\u63d0\u9ad8\u89e3\u6790\u7684\u51c6\u786e\u6027\u548c\u4ee3\u7801\u751f\u6210\u7684\u667a\u80fd\u6027\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u7ed3\u5408\u591a\u79cd\u6280\u672f\u65b9\u6cd5\uff0c\u5e76\u4e0d\u65ad\u4f18\u5316\u548c\u6539\u8fdb\u7b97\u6cd5\uff0c\u5c06\u80fd\u591f\u66f4\u597d\u5730\u5b9e\u73b0\u5c06\u81ea\u7136\u8bed\u8a00\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\u7684\u76ee\u6807\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\uff1f<\/strong><br \/>\u5728\u5904\u7406\u6587\u672c\u6570\u636e\u65f6\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3aPython\u4ee3\u7801\u3002\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5b57\u7b26\u4e32\u5904\u7406\u51fd\u6570\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u3001\u89e3\u6790\u6587\u672c\u5185\u5bb9\u5e76\u5c06\u5176\u683c\u5f0f\u5316\u4e3aPython\u53ef\u7406\u89e3\u7684\u4ee3\u7801\u3002\u6b64\u5916\uff0c\u5229\u7528Python\u5185\u7f6e\u7684<code>exec()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u52a8\u6001\u6267\u884c\u751f\u6210\u7684\u4ee3\u7801\u3002<\/p>\n<p><strong>\u6709\u54ea\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u5c06\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\uff1f<\/strong><br \/>\u5e02\u9762\u4e0a\u6709\u591a\u79cd\u5de5\u5177\u548c\u5e93\u80fd\u591f\u7b80\u5316\u6587\u672c\u5230Python\u4ee3\u7801\u7684\u8f6c\u6362\u8fc7\u7a0b\u3002\u6bd4\u5982\uff0c\u4f7f\u7528<code>pandas<\/code>\u5e93\u53ef\u4ee5\u8f7b\u677e\u5904\u7406\u8868\u683c\u6570\u636e\uff0c\u5c06\u5176\u8f6c\u6362\u4e3aDataFrame\u5bf9\u8c61\uff0c\u8fdb\u800c\u751f\u6210Python\u4ee3\u7801\u3002\u53e6\u5916\uff0c<code>Jupyter Notebook<\/code>\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u73af\u5883\uff0c\u9002\u5408\u8fdb\u884c\u4ee3\u7801\u7684\u6d4b\u8bd5\u548c\u6267\u884c\u3002<\/p>\n<p><strong>\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u6587\u672c\u4e2d\u7684\u9519\u8bef\u6216\u683c\u5f0f\u95ee\u9898\uff1f<\/strong><br \/>\u6587\u672c\u6570\u636e\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u5305\u542b\u9519\u8bef\u6216\u4e0d\u6807\u51c6\u7684\u683c\u5f0f\u3002\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08\u5982<code>try...except<\/code>\u8bed\u53e5\uff09\u80fd\u591f\u6709\u6548\u6355\u6349\u548c\u5904\u7406\u8fd9\u4e9b\u95ee\u9898\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u548c\u66ff\u6362\u7279\u5b9a\u6a21\u5f0f\uff0c\u4ece\u800c\u4fdd\u8bc1\u751f\u6210\u7684Python\u4ee3\u7801\u7684\u6b63\u786e\u6027\u548c\u6709\u6548\u6027\u3002\u5efa\u8bae\u5728\u8f6c\u6362\u524d\u5bf9\u6587\u672c\u8fdb\u884c\u6e05\u6d17\u548c\u89c4\u8303\u5316\uff0c\u4ee5\u51cf\u5c11\u6f5c\u5728\u7684\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5c06\u6587\u672c\u8f6c\u6362\u4e3aPython\u4ee3\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u89e3\u6790\u3001\u6a21\u677f\u5339\u914d\u7b49\u65b9\u6cd5\uff0c\u5176\u4e2d\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f [&hellip;]","protected":false},"author":3,"featured_media":982762,"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\/982758"}],"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=982758"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/982758\/revisions"}],"predecessor-version":[{"id":982765,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/982758\/revisions\/982765"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/982762"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=982758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=982758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=982758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}