{"id":1082586,"date":"2025-01-08T12:50:18","date_gmt":"2025-01-08T04:50:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1082586.html"},"modified":"2025-01-08T12:50:20","modified_gmt":"2025-01-08T04:50:20","slug":"%e5%a6%82%e4%bd%95%e7%bb%93%e6%9d%9fpython%e4%b8%ad%e7%9a%84%e7%bc%a9%e8%bf%9b%e4%bb%a3%e7%a0%81%e5%9d%97-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1082586.html","title":{"rendered":"\u5982\u4f55\u7ed3\u675fPython\u4e2d\u7684\u7f29\u8fdb\u4ee3\u7801\u5757"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24184035\/88c0380a-df1d-487f-9f8b-60b20238112c.webp\" alt=\"\u5982\u4f55\u7ed3\u675fPython\u4e2d\u7684\u7f29\u8fdb\u4ee3\u7801\u5757\" \/><\/p>\n<p><p> <strong>\u901a\u8fc7\u4f7f\u7528\u53cd\u7f29\u8fdb\u3001\u4f7f\u7528\u7a7a\u884c\u3001\u7ed3\u675f\u5faa\u73af\u6216\u6761\u4ef6\u3001\u4f7f\u7528\u51fd\u6570\u6216\u7c7b\u5b9a\u4e49<\/strong> \u53ef\u4ee5\u7ed3\u675fPython\u4e2d\u7684\u7f29\u8fdb\u4ee3\u7801\u5757\u3002<strong>\u53cd\u7f29\u8fdb<\/strong> \u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u51cf\u5c11\u7f29\u8fdb\u7ea7\u522b\u6765\u7ed3\u675f\u4ee3\u7801\u5757\u3002<strong>\u53cd\u7f29\u8fdb<\/strong> \u610f\u5473\u7740\u51cf\u5c11\u4ee3\u7801\u524d\u9762\u7684\u7a7a\u683c\u6570\u91cf\uff0c\u8fd9\u4f1a\u544a\u8bc9Python\u89e3\u91ca\u5668\u5f53\u524d\u4ee3\u7801\u5757\u5df2\u7ecf\u7ed3\u675f\u3002<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u7f29\u8fdb\u662f\u7528\u6765\u8868\u793a\u4ee3\u7801\u5757\u7684\u8fb9\u754c\uff0c\u800c\u4e0d\u662f\u4f7f\u7528\u82b1\u62ec\u53f7\u6216\u5176\u4ed6\u7b26\u53f7\u3002\u8fd9\u4f7f\u5f97\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u66f4\u5f3a\uff0c\u4f46\u4e5f\u9700\u8981\u7279\u522b\u6ce8\u610f\u7f29\u8fdb\u7684\u6b63\u786e\u6027\u3002\u8981\u7ed3\u675f\u4e00\u4e2a\u7f29\u8fdb\u4ee3\u7801\u5757\uff0c\u53ea\u9700\u51cf\u5c11\u7f29\u8fdb\u7684\u7ea7\u522b\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4e00\u4e2a\u4ee3\u7801\u5757\u7f29\u8fdb\u4e86\u56db\u4e2a\u7a7a\u683c\uff0c\u8981\u7ed3\u675f\u5b83\uff0c\u53ea\u9700\u56de\u5230\u524d\u4e00\u4e2a\u7f29\u8fdb\u7ea7\u522b\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u53cd\u7f29\u8fdb<\/h3>\n<\/p>\n<p><p>\u53cd\u7f29\u8fdb\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u51cf\u5c11\u7f29\u8fdb\u7ea7\u522b\u6765\u7ed3\u675f\u4ee3\u7801\u5757\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4e00\u4e2a\u4ee3\u7801\u5757\u7f29\u8fdb\u4e86\u56db\u4e2a\u7a7a\u683c\uff0c\u8981\u7ed3\u675f\u5b83\uff0c\u53ea\u9700\u56de\u5230\u524d\u4e00\u4e2a\u7f29\u8fdb\u7ea7\u522b\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if condition:<\/p>\n<p>    # Start of code block<\/p>\n<p>    print(&quot;This is inside the block&quot;)<\/p>\n<h2><strong>End of code block<\/strong><\/h2>\n<p>print(&quot;This is outside the block&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>print(&quot;This is inside the block&quot;)<\/code> \u662f\u4e00\u4e2a\u7f29\u8fdb\u4ee3\u7801\u5757\u7684\u90e8\u5206\u3002\u5f53\u6211\u4eec\u51cf\u5c11\u7f29\u8fdb\uff0c\u56de\u5230\u524d\u4e00\u4e2a\u7ea7\u522b\u65f6\uff0c\u8868\u793a\u4ee3\u7801\u5757\u7ed3\u675f\u3002<code>print(&quot;This is outside the block&quot;)<\/code> \u4e0d\u518d\u5c5e\u4e8e\u7f29\u8fdb\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u7a7a\u884c<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528\u7a7a\u884c\u53ef\u4ee5\u5e2e\u52a9\u8bfb\u8005\u66f4\u5bb9\u6613\u5730\u7406\u89e3\u4ee3\u7801\u5757\u7684\u7ed3\u675f\u4f4d\u7f6e\uff0c\u5c3d\u7ba1\u8fd9\u5728\u6280\u672f\u4e0a\u5e76\u4e0d\u4f1a\u5f71\u54cd\u4ee3\u7801\u7684\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def my_function():<\/p>\n<p>    print(&quot;This is inside the function&quot;)<\/p>\n<p>    # More code here<\/p>\n<h2><strong>Empty line to visually separate the function block<\/strong><\/h2>\n<p>print(&quot;This is outside the function&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u4f7f\u7528\u7a7a\u884c\u5c06\u51fd\u6570\u5185\u90e8\u7684\u4ee3\u7801\u4e0e\u5916\u90e8\u4ee3\u7801\u89c6\u89c9\u4e0a\u5206\u79bb\u5f00\u6765\u3002\u5c3d\u7ba1\u7a7a\u884c\u5e76\u4e0d\u4f1a\u771f\u6b63\u7ed3\u675f\u4ee3\u7801\u5757\uff0c\u4f46\u5b83\u6709\u52a9\u4e8e\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u7ed3\u675f\u5faa\u73af\u6216\u6761\u4ef6<\/h3>\n<\/p>\n<p><p>\u5728\u5faa\u73af\u6216\u6761\u4ef6\u8bed\u53e5\u4e2d\uff0c\u901a\u8fc7\u7ed3\u675f\u5faa\u73af\u6216\u6761\u4ef6\u6765\u7ed3\u675f\u4ee3\u7801\u5757\u3002\u4f8b\u5982\uff0c\u4f7f\u7528 <code>break<\/code> \u8bed\u53e5\u6765\u7ed3\u675f\u5faa\u73af\uff0c\u6216\u8005\u901a\u8fc7\u6761\u4ef6\u5224\u65ad\u6765\u7ed3\u675f <code>if<\/code> \u8bed\u53e5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(5):<\/p>\n<p>    if i == 3:<\/p>\n<p>        break  # End of code block<\/p>\n<p>    print(i)<\/p>\n<p>print(&quot;This is outside the loop&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u5f53 <code>i<\/code> \u7b49\u4e8e 3 \u65f6\uff0c<code>break<\/code> \u8bed\u53e5\u7ed3\u675f\u4e86\u5faa\u73af\uff0c\u4ee3\u7801\u5757\u968f\u4e4b\u7ed3\u675f\u3002<code>print(&quot;This is outside the loop&quot;)<\/code> \u4e0d\u518d\u5c5e\u4e8e\u5faa\u73af\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u51fd\u6570\u6216\u7c7b\u5b9a\u4e49<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u5b9a\u4e49\u51fd\u6570\u6216\u7c7b\uff0c\u53ef\u4ee5\u5c06\u4ee3\u7801\u5757\u5c01\u88c5\u5728\u51fd\u6570\u6216\u7c7b\u7684\u5185\u90e8\u3002\u5f53\u51fd\u6570\u6216\u7c7b\u5b9a\u4e49\u7ed3\u675f\u65f6\uff0c\u4ee3\u7801\u5757\u4e5f\u968f\u4e4b\u7ed3\u675f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def my_function():<\/p>\n<p>    print(&quot;This is inside the function&quot;)<\/p>\n<p>    # More code here<\/p>\n<h2><strong>End of function definition<\/strong><\/h2>\n<p>print(&quot;This is outside the function&quot;)<\/p>\n<p>class MyClass:<\/p>\n<p>    def __init__(self):<\/p>\n<p>        print(&quot;This is inside the class&quot;)<\/p>\n<p>    # More code here<\/p>\n<h2><strong>End of class definition<\/strong><\/h2>\n<p>print(&quot;This is outside the class&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u51fd\u6570 <code>my_function<\/code> \u548c\u7c7b <code>MyClass<\/code> \u5b9a\u4e49\u4e86\u5404\u81ea\u7684\u4ee3\u7801\u5757\u3002\u5f53\u51fd\u6570\u6216\u7c7b\u5b9a\u4e49\u7ed3\u675f\u65f6\uff0c\u4ee3\u7801\u5757\u4e5f\u968f\u4e4b\u7ed3\u675f\u3002<code>print(&quot;This is outside the function&quot;)<\/code> \u548c <code>print(&quot;This is outside the class&quot;)<\/code> \u4e0d\u518d\u5c5e\u4e8e\u51fd\u6570\u6216\u7c7b\u7684\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668<\/h3>\n<\/p>\n<p><p>\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\uff08Context Manager\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u7ba1\u7406\u8d44\u6e90\u7684\u7f16\u7a0b\u7ed3\u6784\uff0c\u901a\u8fc7 <code>with<\/code> \u8bed\u53e5\u6765\u4f7f\u7528\u3002\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\u4f1a\u5728\u4ee3\u7801\u5757\u7ed3\u675f\u65f6\u81ea\u52a8\u91ca\u653e\u8d44\u6e90\uff0c\u4f8b\u5982\u6587\u4ef6\u3001\u7f51\u7edc\u8fde\u63a5\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;file.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    content = file.read()<\/p>\n<p>    print(&quot;This is inside the context manager&quot;)<\/p>\n<h2><strong>End of context manager<\/strong><\/h2>\n<p>print(&quot;This is outside the context manager&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>with open(&#39;file.txt&#39;, &#39;r&#39;) as file<\/code> \u5b9a\u4e49\u4e86\u4e00\u4e2a\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\u3002\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\u5185\u90e8\u7684\u4ee3\u7801\u5757\u5728 <code>with<\/code> \u8bed\u53e5\u7f29\u8fdb\u7ea7\u522b\u5185\uff0c\u5f53\u7f29\u8fdb\u7ed3\u675f\u65f6\uff0c\u4ee3\u7801\u5757\u4e5f\u968f\u4e4b\u7ed3\u675f\u3002<code>print(&quot;This is outside the context manager&quot;)<\/code> \u4e0d\u518d\u5c5e\u4e8e\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\u7684\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528\u5f02\u5e38\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5f02\u5e38\u5904\u7406\u4ee3\u7801\u5757\u4f7f\u7528 <code>try<\/code>\u3001<code>except<\/code> \u548c <code>finally<\/code> \u5173\u952e\u5b57\u3002\u901a\u8fc7\u7ed3\u675f\u5f02\u5e38\u5904\u7406\u4ee3\u7801\u5757\uff0c\u53ef\u4ee5\u7ed3\u675f\u76f8\u5e94\u7684\u7f29\u8fdb\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    result = 1 \/ 0<\/p>\n<p>except ZeroDivisionError:<\/p>\n<p>    print(&quot;This is inside the exception handling block&quot;)<\/p>\n<p>finally:<\/p>\n<p>    print(&quot;This is inside the finally block&quot;)<\/p>\n<h2><strong>End of exception handling block<\/strong><\/h2>\n<p>print(&quot;This is outside the exception handling block&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>try<\/code>\u3001<code>except<\/code> \u548c <code>finally<\/code> \u5b9a\u4e49\u4e86\u5f02\u5e38\u5904\u7406\u4ee3\u7801\u5757\u3002\u5f53 <code>try<\/code>\u3001<code>except<\/code> \u548c <code>finally<\/code> \u4ee3\u7801\u5757\u7ed3\u675f\u65f6\uff0c\u4ee3\u7801\u5757\u4e5f\u968f\u4e4b\u7ed3\u675f\u3002<code>print(&quot;This is outside the exception handling block&quot;)<\/code> \u4e0d\u518d\u5c5e\u4e8e\u5f02\u5e38\u5904\u7406\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668\uff0c\u53ef\u4ee5\u5b9a\u4e49\u5e76\u7ed3\u675f\u4e00\u4e2a\u4ee3\u7801\u5757\u3002\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668\u901a\u5e38\u7528\u4e8e\u5904\u7406\u5927\u6570\u636e\u96c6\u6216\u6d41\u5f0f\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def my_generator():<\/p>\n<p>    for i in range(5):<\/p>\n<p>        yield i<\/p>\n<p>        print(&quot;This is inside the generator&quot;)<\/p>\n<h2><strong>End of generator definition<\/strong><\/h2>\n<p>for value in my_generator():<\/p>\n<p>    print(value)<\/p>\n<p>print(&quot;This is outside the generator&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>my_generator<\/code> \u51fd\u6570\u5b9a\u4e49\u4e86\u4e00\u4e2a\u751f\u6210\u5668\u3002\u5f53\u751f\u6210\u5668\u51fd\u6570\u7ed3\u675f\u65f6\uff0c\u4ee3\u7801\u5757\u4e5f\u968f\u4e4b\u7ed3\u675f\u3002<code>print(&quot;This is outside the generator&quot;)<\/code> \u4e0d\u518d\u5c5e\u4e8e\u751f\u6210\u5668\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u4f7f\u7528\u5185\u8054\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06\u4ee3\u7801\u653e\u5728\u540c\u4e00\u884c\u5185\u6765\u7ed3\u675f\u7f29\u8fdb\u4ee3\u7801\u5757\u3002\u4f8b\u5982\uff0c\u4f7f\u7528 <code>if<\/code>\u3001<code>else<\/code> \u548c <code>for<\/code> \u8bed\u53e5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if condition: print(&quot;This is inside the block&quot;)<\/p>\n<h2><strong>End of inline block<\/strong><\/h2>\n<p>print(&quot;This is outside the block&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>if condition: print(&quot;This is inside the block&quot;)<\/code> \u662f\u4e00\u4e2a\u5185\u8054\u4ee3\u7801\u5757\u3002\u5f53\u5185\u8054\u4ee3\u7801\u5757\u7ed3\u675f\u65f6\uff0c\u4ee3\u7801\u5757\u4e5f\u968f\u4e4b\u7ed3\u675f\u3002<code>print(&quot;This is outside the block&quot;)<\/code> \u4e0d\u518d\u5c5e\u4e8e\u5185\u8054\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0c\u7ed3\u675fPython\u4e2d\u7684\u7f29\u8fdb\u4ee3\u7801\u5757\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u53cd\u7f29\u8fdb\u3001\u4f7f\u7528\u7a7a\u884c\u3001\u7ed3\u675f\u5faa\u73af\u6216\u6761\u4ef6\u3001\u4f7f\u7528\u51fd\u6570\u6216\u7c7b\u5b9a\u4e49\u3001\u4f7f\u7528\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\u3001\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u3001\u4f7f\u7528\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668\u4ee5\u53ca\u4f7f\u7528\u5185\u8054\u4ee3\u7801\u3002\u6b63\u786e\u5730\u7ed3\u675f\u4ee3\u7801\u5757\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6b63\u786e\u4f7f\u7528\u7f29\u8fdb\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u7f29\u8fdb\u662f\u8bed\u6cd5\u7684\u4e00\u90e8\u5206\uff0c\u7528\u4e8e\u5b9a\u4e49\u4ee3\u7801\u5757\u7684\u5f00\u59cb\u548c\u7ed3\u675f\u3002\u901a\u5e38\uff0c\u4f7f\u7528\u56db\u4e2a\u7a7a\u683c\u6216\u4e00\u4e2a\u5236\u8868\u7b26\uff08Tab\uff09\u6765\u8fdb\u884c\u7f29\u8fdb\u3002\u786e\u4fdd\u5728\u4e00\u4e2a\u4ee3\u7801\u5757\u5185\u4f7f\u7528\u4e00\u81f4\u7684\u7f29\u8fdb\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6709\u6548\u907f\u514dIndentationError\u9519\u8bef\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u5728Python\u4ee3\u7801\u4e2d\u6df7\u5408\u4f7f\u7528\u7a7a\u683c\u548c\u5236\u8868\u7b26\u4f1a\u53d1\u751f\u4ec0\u4e48\uff1f<\/strong><br \/>\u6df7\u5408\u4f7f\u7528\u7a7a\u683c\u548c\u5236\u8868\u7b26\u53ef\u80fd\u5bfc\u81f4\u4ee3\u7801\u53ef\u8bfb\u6027\u964d\u4f4e\uff0c\u5e76\u53ef\u80fd\u5f15\u53d1IndentationError\u3002\u5efa\u8bae\u5728\u7f16\u8f91\u5668\u4e2d\u7edf\u4e00\u8bbe\u7f6e\u7f29\u8fdb\u65b9\u5f0f\uff0c\u4ee5\u4fdd\u6301\u4ee3\u7801\u7684\u4e00\u81f4\u6027\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<p><strong>\u5982\u4f55\u68c0\u67e5\u548c\u4fee\u590dPython\u4ee3\u7801\u4e2d\u7684\u7f29\u8fdb\u9519\u8bef\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u6765\u67e5\u627e\u7f29\u8fdb\u95ee\u9898\u3002\u8bb8\u591a\u73b0\u4ee3\u4ee3\u7801\u7f16\u8f91\u5668\u548cIDE\u63d0\u4f9b\u4e86\u81ea\u52a8\u7f29\u8fdb\u529f\u80fd\uff0c\u80fd\u591f\u5e2e\u52a9\u60a8\u8c03\u6574\u4ee3\u7801\u7ed3\u6784\u3002\u6b64\u5916\uff0c\u8fd0\u884c\u4ee3\u7801\u65f6\u4f1a\u63d0\u793a\u7f29\u8fdb\u9519\u8bef\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u63d0\u793a\u9010\u884c\u68c0\u67e5\u5e76\u4fee\u6b63\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u901a\u8fc7\u4f7f\u7528\u53cd\u7f29\u8fdb\u3001\u4f7f\u7528\u7a7a\u884c\u3001\u7ed3\u675f\u5faa\u73af\u6216\u6761\u4ef6\u3001\u4f7f\u7528\u51fd\u6570\u6216\u7c7b\u5b9a\u4e49 \u53ef\u4ee5\u7ed3\u675fPython\u4e2d\u7684\u7f29\u8fdb\u4ee3\u7801\u5757\u3002\u53cd\u7f29\u8fdb \u662f\u6700\u5e38 [&hellip;]","protected":false},"author":3,"featured_media":1082593,"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\/1082586"}],"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=1082586"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1082586\/revisions"}],"predecessor-version":[{"id":1082594,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1082586\/revisions\/1082594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1082593"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1082586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1082586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1082586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}