{"id":1002034,"date":"2024-12-27T10:05:15","date_gmt":"2024-12-27T02:05:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1002034.html"},"modified":"2024-12-27T10:05:18","modified_gmt":"2024-12-27T02:05:18","slug":"python%e5%a6%82%e4%bd%95%e7%bc%96%e7%a8%8b%e4%b8%ad%e8%8b%b1%e5%ad%97%e5%85%b8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1002034.html","title":{"rendered":"python\u5982\u4f55\u7f16\u7a0b\u4e2d\u82f1\u5b57\u5178"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075943\/59d80832-8531-4c01-8134-c0f5ec4bcb29.webp\" alt=\"python\u5982\u4f55\u7f16\u7a0b\u4e2d\u82f1\u5b57\u5178\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u7f16\u7a0b\u521b\u5efa\u4e2d\u82f1\u5b57\u5178\u7684\u5173\u952e\u6b65\u9aa4\u5305\u62ec\uff1a\u5b9a\u4e49\u6570\u636e\u7ed3\u6784\u3001\u6dfb\u52a0\u8bcd\u6761\u3001\u67e5\u627e\u529f\u80fd\u3001\u66f4\u65b0\u548c\u5220\u9664\u64cd\u4f5c\u3002<\/strong> \u9996\u5148\uff0c\u5b9a\u4e49\u4e00\u4e2a\u6570\u636e\u7ed3\u6784\u6765\u5b58\u50a8\u5b57\u5178\u6570\u636e\uff0c\u901a\u5e38\u4f7f\u7528Python\u7684\u5b57\u5178\u7c7b\u578b\uff08dict\uff09\uff1b\u63a5\u7740\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u51fd\u6570\u6765\u6dfb\u52a0\u4e2d\u82f1\u6587\u8bcd\u6761\uff1b\u7136\u540e\uff0c\u5b9e\u73b0\u4e00\u4e2a\u67e5\u627e\u529f\u80fd\u4ee5\u4fbf\u7528\u6237\u5feb\u901f\u83b7\u53d6\u8bcd\u6c47\u7684\u7ffb\u8bd1\uff1b\u6700\u540e\uff0c\u63d0\u4f9b\u66f4\u65b0\u548c\u5220\u9664\u529f\u80fd\u4ee5\u7ef4\u62a4\u5b57\u5178\u7684\u5185\u5bb9\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0\u8fd9\u4e9b\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b9a\u4e49\u6570\u636e\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u5728\u521b\u5efa\u4e2d\u82f1\u5b57\u5178\u65f6\uff0c\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784\u81f3\u5173\u91cd\u8981\u3002\u5728Python\u4e2d\uff0c\u5b57\u5178\uff08dict\uff09\u662f\u5b58\u50a8\u952e\u503c\u5bf9\u7684\u7406\u60f3\u9009\u62e9\u3002\u952e\u53ef\u4ee5\u662f\u4e2d\u6587\u8bcd\u6c47\uff0c\u800c\u503c\u5219\u662f\u5bf9\u5e94\u7684\u82f1\u6587\u7ffb\u8bd1\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u4f7f\u7528Python\u5b57\u5178<\/h4>\n<\/p>\n<p><p>Python\u7684\u5b57\u5178\u7c7b\u578b\u63d0\u4f9b\u4e86\u4e00\u79cd\u7075\u6d3b\u4e14\u9ad8\u6548\u7684\u65b9\u5f0f\u6765\u5b58\u50a8\u548c\u64cd\u4f5c\u4e2d\u82f1\u8bcd\u6761\u3002\u5b57\u5178\u4ee5\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u5b58\u50a8\u6570\u636e\uff0c\u67e5\u627e\u901f\u5ea6\u5feb\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u5b57\u5178\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">chinese_english_dict = {<\/p>\n<p>    &#39;\u4f60\u597d&#39;: &#39;hello&#39;,<\/p>\n<p>    &#39;\u4e16\u754c&#39;: &#39;world&#39;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.2 \u786e\u5b9a\u5b58\u50a8\u7ed3\u6784<\/h4>\n<\/p>\n<p><p>\u6839\u636e\u9700\u6c42\uff0c\u6211\u4eec\u53ef\u4ee5\u51b3\u5b9a\u662f\u4f7f\u7528\u7b80\u5355\u7684\u952e\u503c\u5bf9\uff0c\u8fd8\u662f\u5d4c\u5957\u5b57\u5178\u6765\u63d0\u4f9b\u66f4\u591a\u7684\u5143\u6570\u636e\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8bb0\u5f55\u6bcf\u4e2a\u8bcd\u6761\u7684\u8bcd\u6027\u3001\u7528\u6cd5\u793a\u4f8b\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">chinese_english_dict = {<\/p>\n<p>    &#39;\u4f60\u597d&#39;: {&#39;translation&#39;: &#39;hello&#39;, &#39;part_of_speech&#39;: &#39;interjection&#39;, &#39;example&#39;: &#39;\u4f60\u597d\u5417\uff1f&#39;}<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u6dfb\u52a0\u8bcd\u6761<\/h3>\n<\/p>\n<p><p>\u4e3a\u5b57\u5178\u6dfb\u52a0\u8bcd\u6761\u662f\u6700\u57fa\u672c\u7684\u64cd\u4f5c\u4e4b\u4e00\uff0c\u901a\u5e38\u9700\u8981\u4e00\u4e2a\u51fd\u6570\u6765\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u65b0\u8bcd\u6761\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u57fa\u672c\u6dfb\u52a0\u529f\u80fd<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528Python\u7684\u8d4b\u503c\u8bed\u53e5\u76f4\u63a5\u5411\u5b57\u5178\u4e2d\u6dfb\u52a0\u65b0\u7684\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add_word(chinese_word, english_word):<\/p>\n<p>    chinese_english_dict[chinese_word] = english_word<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.2 \u6269\u5c55\u529f\u80fd<\/h4>\n<\/p>\n<p><p>\u5728\u6dfb\u52a0\u8bcd\u6761\u65f6\uff0c\u53ef\u4ee5\u589e\u52a0\u8f93\u5165\u9a8c\u8bc1\uff0c\u786e\u4fdd\u4e0d\u4f1a\u8986\u76d6\u5df2\u6709\u8bcd\u6761\uff0c\u6216\u8005\u8be2\u95ee\u7528\u6237\u662f\u5426\u66f4\u65b0\u5df2\u6709\u7684\u7ffb\u8bd1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add_word(chinese_word, english_word):<\/p>\n<p>    if chinese_word in chinese_english_dict:<\/p>\n<p>        print(f&quot;{chinese_word} \u5df2\u5b58\u5728\uff0c\u7ffb\u8bd1\u4e3a {chinese_english_dict[chinese_word]}&quot;)<\/p>\n<p>        update = input(&quot;\u662f\u5426\u66f4\u65b0\u7ffb\u8bd1\uff1f(y\/n): &quot;)<\/p>\n<p>        if update.lower() == &#39;y&#39;:<\/p>\n<p>            chinese_english_dict[chinese_word] = english_word<\/p>\n<p>            print(&quot;\u7ffb\u8bd1\u5df2\u66f4\u65b0\u3002&quot;)<\/p>\n<p>    else:<\/p>\n<p>        chinese_english_dict[chinese_word] = english_word<\/p>\n<p>        print(&quot;\u65b0\u8bcd\u6761\u5df2\u6dfb\u52a0\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u67e5\u627e\u529f\u80fd<\/h3>\n<\/p>\n<p><p>\u5b9e\u73b0\u67e5\u627e\u529f\u80fd\uff0c\u4f7f\u7528\u6237\u80fd\u591f\u5feb\u901f\u83b7\u53d6\u4e2d\u6587\u8bcd\u6c47\u7684\u82f1\u6587\u7ffb\u8bd1\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u57fa\u672c\u67e5\u627e<\/h4>\n<\/p>\n<p><p>\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u901a\u8fc7\u7ed9\u5b9a\u7684\u4e2d\u6587\u8bcd\u6c47\u8fd4\u56de\u5bf9\u5e94\u7684\u82f1\u6587\u7ffb\u8bd1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def find_translation(chinese_word):<\/p>\n<p>    return chinese_english_dict.get(chinese_word, &quot;\u8bcd\u6761\u672a\u627e\u5230&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2 \u589e\u5f3a\u67e5\u627e<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u589e\u52a0\u6a21\u7cca\u67e5\u627e\u529f\u80fd\uff0c\u5e2e\u52a9\u7528\u6237\u5728\u8f93\u5165\u4e0d\u5b8c\u6574\u8bcd\u6761\u65f6\u4e5f\u80fd\u627e\u5230\u53ef\u80fd\u7684\u5339\u914d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def find_translation(chinese_word):<\/p>\n<p>    if chinese_word in chinese_english_dict:<\/p>\n<p>        return chinese_english_dict[chinese_word]<\/p>\n<p>    else:<\/p>\n<p>        suggestions = [word for word in chinese_english_dict if chinese_word in word]<\/p>\n<p>        if suggestions:<\/p>\n<p>            return f&quot;\u8bcd\u6761\u672a\u627e\u5230\u3002\u60a8\u662f\u4e0d\u662f\u60f3\u627e\uff1a{&#39;, &#39;.join(suggestions)}&quot;<\/p>\n<p>        else:<\/p>\n<p>            return &quot;\u8bcd\u6761\u672a\u627e\u5230&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u66f4\u65b0\u548c\u5220\u9664\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u7ef4\u62a4\u5b57\u5178\u7684\u5173\u952e\u662f\u80fd\u591f\u66f4\u65b0\u548c\u5220\u9664\u8bcd\u6761\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u5b57\u5178\u7684\u51c6\u786e\u6027\u548c\u5b9e\u7528\u6027\u3002<\/p>\n<\/p>\n<p><h4>4.1 \u66f4\u65b0\u529f\u80fd<\/h4>\n<\/p>\n<p><p>\u5728\u66f4\u65b0\u8bcd\u6761\u65f6\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u9009\u62e9\u66f4\u65b0\u7ffb\u8bd1\u6216\u6dfb\u52a0\u65b0\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def update_word(chinese_word, new_english_word):<\/p>\n<p>    if chinese_word in chinese_english_dict:<\/p>\n<p>        chinese_english_dict[chinese_word] = new_english_word<\/p>\n<p>        print(&quot;\u8bcd\u6761\u5df2\u66f4\u65b0\u3002&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8bcd\u6761\u4e0d\u5b58\u5728\uff0c\u65e0\u6cd5\u66f4\u65b0\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2 \u5220\u9664\u529f\u80fd<\/h4>\n<\/p>\n<p><p>\u5220\u9664\u529f\u80fd\u5141\u8bb8\u7528\u6237\u79fb\u9664\u4e0d\u518d\u9700\u8981\u7684\u8bcd\u6761\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def delete_word(chinese_word):<\/p>\n<p>    if chinese_word in chinese_english_dict:<\/p>\n<p>        del chinese_english_dict[chinese_word]<\/p>\n<p>        print(&quot;\u8bcd\u6761\u5df2\u5220\u9664\u3002&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;\u8bcd\u6761\u4e0d\u5b58\u5728\uff0c\u65e0\u6cd5\u5220\u9664\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u63d0\u9ad8\u5b57\u5178\u7684\u5b9e\u7528\u6027<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u8ba9\u4e2d\u82f1\u5b57\u5178\u66f4\u52a0\u5b9e\u7528\uff0c\u53ef\u4ee5\u8003\u8651\u6dfb\u52a0\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\uff0c\u4f8b\u5982\u8bcd\u6761\u7684\u6279\u91cf\u5bfc\u5165\u5bfc\u51fa\u3001\u8bcd\u9891\u7edf\u8ba1\u3001\u7ed3\u5408\u8bed\u97f3\u8bc6\u522b\u7b49\u3002<\/p>\n<\/p>\n<p><h4>5.1 \u6279\u91cf\u5bfc\u5165\u5bfc\u51fa<\/h4>\n<\/p>\n<p><p>\u652f\u6301\u4ece\u6587\u4ef6\u5bfc\u5165\u548c\u5bfc\u51fa\u8bcd\u6761\uff0c\u65b9\u4fbf\u7528\u6237\u7ba1\u7406\u548c\u5171\u4eab\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def import_words(file_path):<\/p>\n<p>    try:<\/p>\n<p>        with open(file_path, &#39;r&#39;, encoding=&#39;utf-8&#39;) as file:<\/p>\n<p>            for line in file:<\/p>\n<p>                chinese_word, english_word = line.strip().split(&#39;,&#39;)<\/p>\n<p>                chinese_english_dict[chinese_word] = english_word<\/p>\n<p>        print(&quot;\u8bcd\u6761\u5df2\u6210\u529f\u5bfc\u5165\u3002&quot;)<\/p>\n<p>    except FileNotFoundError:<\/p>\n<p>        print(&quot;\u6587\u4ef6\u672a\u627e\u5230\u3002&quot;)<\/p>\n<p>def export_words(file_path):<\/p>\n<p>    try:<\/p>\n<p>        with open(file_path, &#39;w&#39;, encoding=&#39;utf-8&#39;) as file:<\/p>\n<p>            for chinese_word, english_word in chinese_english_dict.items():<\/p>\n<p>                file.write(f&quot;{chinese_word},{english_word}\\n&quot;)<\/p>\n<p>        print(&quot;\u8bcd\u6761\u5df2\u6210\u529f\u5bfc\u51fa\u3002&quot;)<\/p>\n<p>    except IOError:<\/p>\n<p>        print(&quot;\u6587\u4ef6\u5199\u5165\u9519\u8bef\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5.2 \u8bcd\u9891\u7edf\u8ba1<\/h4>\n<\/p>\n<p><p>\u8bb0\u5f55\u7528\u6237\u67e5\u8be2\u7684\u8bcd\u6761\u9891\u7387\uff0c\u4ee5\u4fbf\u63d0\u4f9b\u5e38\u7528\u8bcd\u7684\u5efa\u8bae\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">query_counter = {}<\/p>\n<p>def find_translation_with_frequency(chinese_word):<\/p>\n<p>    translation = chinese_english_dict.get(chinese_word, &quot;\u8bcd\u6761\u672a\u627e\u5230&quot;)<\/p>\n<p>    if translation != &quot;\u8bcd\u6761\u672a\u627e\u5230&quot;:<\/p>\n<p>        query_counter[chinese_word] = query_counter.get(chinese_word, 0) + 1<\/p>\n<p>    return translation<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5.3 \u7ed3\u5408\u8bed\u97f3\u8bc6\u522b<\/h4>\n<\/p>\n<p><p>\u5229\u7528Python\u7684\u8bed\u97f3\u8bc6\u522b\u5e93\uff0c\u5b9e\u73b0\u8bed\u97f3\u67e5\u8be2\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import speech_recognition as sr<\/p>\n<p>def voice_query():<\/p>\n<p>    recognizer = sr.Recognizer()<\/p>\n<p>    with sr.Microphone() as source:<\/p>\n<p>        print(&quot;\u8bf7\u8bf4\u51fa\u60a8\u8981\u67e5\u8be2\u7684\u8bcd\u6761\uff1a&quot;)<\/p>\n<p>        audio = recognizer.listen(source)<\/p>\n<p>        try:<\/p>\n<p>            text = recognizer.recognize_google(audio, language=&#39;zh-CN&#39;)<\/p>\n<p>            print(f&quot;\u60a8\u8bf4\u7684\u662f\uff1a{text}&quot;)<\/p>\n<p>            print(find_translation(text))<\/p>\n<p>        except sr.UnknownValueError:<\/p>\n<p>            print(&quot;\u65e0\u6cd5\u8bc6\u522b\u8bed\u97f3&quot;)<\/p>\n<p>        except sr.RequestError as e:<\/p>\n<p>            print(f&quot;\u8bed\u97f3\u8bc6\u522b\u670d\u52a1\u51fa\u9519\uff1a{e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u521b\u5efa\u4e00\u4e2a\u529f\u80fd\u4e30\u5bcc\u7684\u4e2d\u82f1\u5b57\u5178\uff0c\u4ece\u800c\u6ee1\u8db3\u591a\u6837\u5316\u7684\u8bed\u8a00\u5b66\u4e60\u548c\u7ffb\u8bd1\u9700\u6c42\u3002\u968f\u7740\u6280\u672f\u7684\u53d1\u5c55\uff0c\u66f4\u591a\u7684\u9ad8\u7ea7\u529f\u80fd\u548c\u4f18\u5316\u65b9\u6cd5\u4e5f\u5c06\u4e0d\u65ad\u6d8c\u73b0\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u4e2d\u82f1\u5b57\u5178\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\uff08dictionary\uff09\u6570\u636e\u7ed3\u6784\u6765\u521b\u5efa\u4e00\u4e2a\u4e2d\u82f1\u5b57\u5178\u3002\u5b57\u5178\u7531\u952e\u503c\u5bf9\u7ec4\u6210\uff0c\u4e2d\u6587\u4f5c\u4e3a\u952e\uff0c\u82f1\u6587\u4f5c\u4e3a\u503c\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">chinese_english_dict = {\n    &quot;\u4f60\u597d&quot;: &quot;Hello&quot;,\n    &quot;\u8c22\u8c22&quot;: &quot;Thank you&quot;,\n    &quot;\u518d\u89c1&quot;: &quot;Goodbye&quot;\n}\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u4f60\u5c31\u53ef\u4ee5\u901a\u8fc7\u4e2d\u6587\u8bcd\u6c47\u5feb\u901f\u67e5\u627e\u5bf9\u5e94\u7684\u82f1\u6587\u7ffb\u8bd1\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u4e2d\u82f1\u5b57\u5178\u4e2d\u6dfb\u52a0\u65b0\u5355\u8bcd\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u7684\u8d4b\u503c\u65b9\u6cd5\u6765\u6dfb\u52a0\u65b0\u7684\u4e2d\u6587\u548c\u82f1\u6587\u8bcd\u6c47\u5bf9\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">chinese_english_dict[&quot;\u5b66\u4e60&quot;] = &quot;Study&quot;\n<\/code><\/pre>\n<p>\u8fd9\u6761\u8bed\u53e5\u5c06\u201c\u5b66\u4e60\u201d\u8fd9\u4e2a\u4e2d\u6587\u8bcd\u6c47\u53ca\u5176\u82f1\u6587\u7ffb\u8bd1\u201cStudy\u201d\u6dfb\u52a0\u5230\u5b57\u5178\u4e2d\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u67e5\u627e\u4e2d\u82f1\u5b57\u5178\u4e2d\u7684\u5355\u8bcd\u7ffb\u8bd1\uff1f<\/strong><br \/>\u8981\u67e5\u627e\u7ffb\u8bd1\uff0c\u53ef\u4ee5\u901a\u8fc7\u952e\uff08\u4e2d\u6587\u8bcd\u6c47\uff09\u6765\u8bbf\u95ee\u5b57\u5178\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">translation = chinese_english_dict.get(&quot;\u8c22\u8c22&quot;)\nprint(translation)  # \u8f93\u51fa\uff1aThank you\n<\/code><\/pre>\n<p>\u4f7f\u7528<code>get()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u907f\u514d\u5728\u952e\u4e0d\u5b58\u5728\u65f6\u5f15\u53d1\u9519\u8bef\uff0c\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u9ed8\u8ba4\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u7f16\u7a0b\u521b\u5efa\u4e2d\u82f1\u5b57\u5178\u7684\u5173\u952e\u6b65\u9aa4\u5305\u62ec\uff1a\u5b9a\u4e49\u6570\u636e\u7ed3\u6784\u3001\u6dfb\u52a0\u8bcd\u6761\u3001\u67e5\u627e\u529f\u80fd\u3001\u66f4\u65b0\u548c\u5220\u9664\u64cd\u4f5c\u3002 \u9996\u5148\uff0c\u5b9a\u4e49 [&hellip;]","protected":false},"author":3,"featured_media":1002042,"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\/1002034"}],"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=1002034"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1002034\/revisions"}],"predecessor-version":[{"id":1002043,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1002034\/revisions\/1002043"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1002042"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1002034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1002034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1002034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}