{"id":1185937,"date":"2025-01-15T19:46:56","date_gmt":"2025-01-15T11:46:56","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1185937.html"},"modified":"2025-01-15T19:46:59","modified_gmt":"2025-01-15T11:46:59","slug":"python3%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba%e8%8f%b1%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1185937.html","title":{"rendered":"python3\u5982\u4f55\u8f93\u51fa\u83f1\u5f62"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25134918\/259a88b7-6fb4-4a11-9098-4ff582bf9c1f.webp\" alt=\"python3\u5982\u4f55\u8f93\u51fa\u83f1\u5f62\" \/><\/p>\n<p><p> <strong>Python3\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u3001\u6761\u4ef6\u5224\u65ad\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u6765\u8f93\u51fa\u83f1\u5f62\u3001\u5728\u6bcf\u4e00\u884c\u6253\u5370\u76f8\u5e94\u6570\u91cf\u7684\u7a7a\u683c\u548c\u661f\u53f7<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5229\u7528Python3\u4ee3\u7801\u8f93\u51fa\u4e00\u4e2a\u83f1\u5f62\u56fe\u6848\u3002\u83f1\u5f62\u7684\u8f93\u51fa\u4e3b\u8981\u901a\u8fc7\u63a7\u5236\u7a7a\u683c\u548c\u661f\u53f7\u7684\u6570\u91cf\u6765\u5b9e\u73b0\u3002\u5047\u8bbe\u6211\u4eec\u8981\u8f93\u51fa\u4e00\u4e2a\u9ad8\u5ea6\u4e3an\u7684\u83f1\u5f62\uff08n\u4e3a\u5947\u6570\uff09\uff0c\u53ef\u4ee5\u5c06\u5176\u5206\u4e3a\u4e0a\u534a\u90e8\u5206\u548c\u4e0b\u534a\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8f93\u5165\u4e0e\u57fa\u7840\u8bbe\u7f6e<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4ece\u7528\u6237\u90a3\u91cc\u83b7\u53d6\u83f1\u5f62\u7684\u9ad8\u5ea6\u3002\u4e3a\u4e86\u786e\u4fdd\u7a0b\u5e8f\u7684\u5065\u58ee\u6027\uff0c\u6211\u4eec\u8981\u786e\u4fdd\u8f93\u5165\u7684\u662f\u4e00\u4e2a\u5947\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_odd_number():<\/p>\n<p>    while True:<\/p>\n<p>        try:<\/p>\n<p>            n = int(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5947\u6570\u4f5c\u4e3a\u83f1\u5f62\u7684\u9ad8\u5ea6: &quot;))<\/p>\n<p>            if n % 2 != 0:<\/p>\n<p>                return n<\/p>\n<p>            else:<\/p>\n<p>                print(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5947\u6570!&quot;)<\/p>\n<p>        except ValueError:<\/p>\n<p>            print(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u6574\u6570!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4e0a\u534a\u90e8\u5206\u7684\u8f93\u51fa<\/h3>\n<\/p>\n<p><p>\u4e0a\u534a\u90e8\u5206\u7684\u83f1\u5f62\u5305\u62ec\u4e2d\u95f4\u7684\u90a3\u4e00\u884c\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u6765\u63a7\u5236\u8f93\u51fa\u7684\u884c\u6570\uff0c\u6bcf\u4e00\u884c\u7684\u7a7a\u683c\u548c\u661f\u53f7\u7684\u6570\u91cf\u6839\u636e\u884c\u53f7\u6765\u51b3\u5b9a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_upper_part(n):<\/p>\n<p>    for i in range(n \/\/ 2 + 1):<\/p>\n<p>        # \u8ba1\u7b97\u5f53\u524d\u884c\u7684\u7a7a\u683c\u548c\u661f\u53f7\u6570\u91cf<\/p>\n<p>        spaces = &#39; &#39; * ((n \/\/ 2) - i)<\/p>\n<p>        stars = &#39;*&#39; * (2 * i + 1)<\/p>\n<p>        print(spaces + stars)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4e0b\u534a\u90e8\u5206\u7684\u8f93\u51fa<\/h3>\n<\/p>\n<p><p>\u4e0b\u534a\u90e8\u5206\u7684\u83f1\u5f62\u76f8\u5f53\u4e8e\u4e0a\u534a\u90e8\u5206\u7684\u955c\u50cf\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u7c7b\u4f3c\u7684\u65b9\u6cd5\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_lower_part(n):<\/p>\n<p>    for i in range(n \/\/ 2 - 1, -1, -1):<\/p>\n<p>        # \u8ba1\u7b97\u5f53\u524d\u884c\u7684\u7a7a\u683c\u548c\u661f\u53f7\u6570\u91cf<\/p>\n<p>        spaces = &#39; &#39; * ((n \/\/ 2) - i)<\/p>\n<p>        stars = &#39;*&#39; * (2 * i + 1)<\/p>\n<p>        print(spaces + stars)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7ec4\u5408\u5e76\u8f93\u51fa\u5b8c\u6574\u83f1\u5f62<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u8c03\u7528\u4e0a\u9762\u7684\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u8f93\u51fa\u5b8c\u6574\u7684\u83f1\u5f62\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_diamond(n):<\/p>\n<p>    print_upper_part(n)<\/p>\n<p>    print_lower_part(n)<\/p>\n<p>if __name__ == &quot;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&quot;:<\/p>\n<p>    n = get_odd_number()<\/p>\n<p>    print_diamond(n)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u8be6\u7ec6\u89e3\u91ca\u4e0e\u5206\u6790<\/h3>\n<\/p>\n<p><h4>1\u3001\u83b7\u53d6\u7528\u6237\u8f93\u5165<\/h4>\n<\/p>\n<p><p>\u5728<code>get_odd_number<\/code>\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u4e00\u4e2a\u65e0\u9650\u5faa\u73af\u6765\u4e0d\u65ad\u63d0\u793a\u7528\u6237\u8f93\u5165\uff0c\u76f4\u5230\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u5947\u6570\u4e3a\u6b62\u3002<code>try...except<\/code>\u5757\u7528\u6765\u6355\u83b7\u975e\u6574\u6570\u8f93\u5165\uff0c\u4ece\u800c\u907f\u514d\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4e0a\u534a\u90e8\u5206\u7684\u8f93\u51fa<\/h4>\n<\/p>\n<p><p>\u5728<code>print_upper_part<\/code>\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7<code>for<\/code>\u5faa\u73af\u6765\u63a7\u5236\u884c\u6570\uff0c\u4ece\u7b2c0\u884c\u5230<code>n\/\/2<\/code>\u884c\u3002\u6bcf\u4e00\u884c\u7684\u7a7a\u683c\u6570\u91cf\u4e3a<code>(n\/\/2 - i)<\/code>\uff0c\u661f\u53f7\u6570\u91cf\u4e3a<code>(2*i + 1)<\/code>\u3002\u901a\u8fc7\u5b57\u7b26\u4e32\u4e58\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u751f\u6210\u6240\u9700\u6570\u91cf\u7684\u7a7a\u683c\u548c\u661f\u53f7\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u62fc\u63a5\u8d77\u6765\u5e76\u6253\u5370\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u4e0b\u534a\u90e8\u5206\u7684\u8f93\u51fa<\/h4>\n<\/p>\n<p><p>\u4e0b\u534a\u90e8\u5206\u7684\u8f93\u51fa\u4e0e\u4e0a\u534a\u90e8\u5206\u7c7b\u4f3c\uff0c\u53ea\u4e0d\u8fc7\u5faa\u73af\u7684\u8303\u56f4\u548c\u65b9\u5411\u6709\u6240\u4e0d\u540c\u3002\u5728<code>print_lower_part<\/code>\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7<code>for<\/code>\u5faa\u73af\u6765\u63a7\u5236\u884c\u6570\uff0c\u4ece<code>n\/\/2 - 1<\/code>\u884c\u5230\u7b2c0\u884c\u3002\u6bcf\u4e00\u884c\u7684\u7a7a\u683c\u548c\u661f\u53f7\u6570\u91cf\u7684\u8ba1\u7b97\u65b9\u6cd5\u4e0e\u4e0a\u534a\u90e8\u5206\u76f8\u540c\u3002<\/p>\n<\/p>\n<p><h4>4\u3001\u7ec4\u5408\u5e76\u8f93\u51fa\u5b8c\u6574\u83f1\u5f62<\/h4>\n<\/p>\n<p><p>\u5728<code>print_diamond<\/code>\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u8c03\u7528<code>print_upper_part<\/code>\u51fd\u6570\u8f93\u51fa\u4e0a\u534a\u90e8\u5206\u7684\u83f1\u5f62\uff0c\u7136\u540e\u8c03\u7528<code>print_lower_part<\/code>\u51fd\u6570\u8f93\u51fa\u4e0b\u534a\u90e8\u5206\u7684\u83f1\u5f62\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u5f97\u5230\u4e86\u5b8c\u6574\u7684\u83f1\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u8fdb\u9636\uff1a\u8f93\u51fa\u5e26\u8fb9\u6846\u7684\u83f1\u5f62<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u83f1\u5f62\u66f4\u7f8e\u89c2\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u83f1\u5f62\u7684\u56db\u5468\u6dfb\u52a0\u8fb9\u6846\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728\u6bcf\u4e00\u884c\u7684\u661f\u53f7\u4e24\u8fb9\u6dfb\u52a0\u7ad6\u7ebf\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_diamond_with_border(n):<\/p>\n<p>    border = &#39;+&#39; + &#39;-&#39; * n + &#39;+&#39;<\/p>\n<p>    print(border)<\/p>\n<p>    for i in range(n \/\/ 2 + 1):<\/p>\n<p>        spaces = &#39; &#39; * ((n \/\/ 2) - i)<\/p>\n<p>        stars = &#39;*&#39; * (2 * i + 1)<\/p>\n<p>        print(&#39;|&#39; + spaces + stars + spaces + &#39;|&#39;)<\/p>\n<p>    for i in range(n \/\/ 2 - 1, -1, -1):<\/p>\n<p>        spaces = &#39; &#39; * ((n \/\/ 2) - i)<\/p>\n<p>        stars = &#39;*&#39; * (2 * i + 1)<\/p>\n<p>        print(&#39;|&#39; + spaces + stars + spaces + &#39;|&#39;)<\/p>\n<p>    print(border)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    n = get_odd_number()<\/p>\n<p>    print_diamond_with_border(n)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u7248\u672c\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u6253\u5370\u4e86\u9876\u8fb9\u6846\uff0c\u7136\u540e\u5728\u6bcf\u4e00\u884c\u7684\u661f\u53f7\u4e24\u8fb9\u5206\u522b\u6dfb\u52a0\u7ad6\u7ebf\uff0c\u6700\u540e\u6253\u5370\u5e95\u8fb9\u6846\u3002\u8fd9\u6837\u8f93\u51fa\u7684\u83f1\u5f62\u5c06\u88ab\u4e00\u4e2a\u77e9\u5f62\u7684\u8fb9\u6846\u5305\u56f4\uff0c\u770b\u8d77\u6765\u66f4\u52a0\u6574\u9f50\u3002<\/p>\n<\/p>\n<p><h3>\u8fdb\u9636\uff1a\u8f93\u51fa\u4e0d\u540c\u5b57\u7b26\u7684\u83f1\u5f62<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u6211\u4eec\u5e0c\u671b\u83f1\u5f62\u7684\u661f\u53f7\u53ef\u4ee5\u66ff\u6362\u4e3a\u5176\u4ed6\u5b57\u7b26\uff0c\u53ef\u4ee5\u5728\u51fd\u6570\u4e2d\u589e\u52a0\u4e00\u4e2a\u53c2\u6570\u6765\u6307\u5b9a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_diamond_with_char(n, char):<\/p>\n<p>    for i in range(n \/\/ 2 + 1):<\/p>\n<p>        spaces = &#39; &#39; * ((n \/\/ 2) - i)<\/p>\n<p>        stars = char * (2 * i + 1)<\/p>\n<p>        print(spaces + stars)<\/p>\n<p>    for i in range(n \/\/ 2 - 1, -1, -1):<\/p>\n<p>        spaces = &#39; &#39; * ((n \/\/ 2) - i)<\/p>\n<p>        stars = char * (2 * i + 1)<\/p>\n<p>        print(spaces + stars)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    n = get_odd_number()<\/p>\n<p>    char = input(&quot;\u8bf7\u8f93\u5165\u7528\u4e8e\u6784\u9020\u83f1\u5f62\u7684\u5b57\u7b26: &quot;)<\/p>\n<p>    print_diamond_with_char(n, char)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u7248\u672c\u4e2d\uff0c\u6211\u4eec\u5728<code>print_diamond_with_char<\/code>\u51fd\u6570\u4e2d\u589e\u52a0\u4e86\u4e00\u4e2a<code>char<\/code>\u53c2\u6570\uff0c\u7528\u4e8e\u6307\u5b9a\u7528\u4e8e\u6784\u9020\u83f1\u5f62\u7684\u5b57\u7b26\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u4ed6\u4eec\u559c\u6b22\u7684\u5b57\u7b26\u6765\u751f\u6210\u4e0d\u540c\u7684\u83f1\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u8fdb\u9636\uff1a\u8f93\u51fa\u5b9e\u5fc3\u83f1\u5f62<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u6211\u4eec\u5e0c\u671b\u8f93\u51fa\u4e00\u4e2a\u5b9e\u5fc3\u7684\u83f1\u5f62\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u8f93\u51fa\u7684\u5b57\u7b26\u6570\u91cf\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_solid_diamond(n):<\/p>\n<p>    for i in range(n \/\/ 2 + 1):<\/p>\n<p>        spaces = &#39; &#39; * ((n \/\/ 2) - i)<\/p>\n<p>        stars = &#39;*&#39; * n<\/p>\n<p>        print(spaces + stars)<\/p>\n<p>    for i in range(n \/\/ 2 - 1, -1, -1):<\/p>\n<p>        spaces = &#39; &#39; * ((n \/\/ 2) - i)<\/p>\n<p>        stars = &#39;*&#39; * n<\/p>\n<p>        print(spaces + stars)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    n = get_odd_number()<\/p>\n<p>    print_solid_diamond(n)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u7248\u672c\u4e2d\uff0c\u6211\u4eec\u5c06\u6bcf\u4e00\u884c\u7684\u661f\u53f7\u6570\u91cf\u56fa\u5b9a\u4e3a<code>n<\/code>\uff0c\u8fd9\u6837\u8f93\u51fa\u7684\u83f1\u5f62\u5c06\u662f\u5b9e\u5fc3\u7684\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python3\u6765\u8f93\u51fa\u5404\u79cd\u5f62\u6001\u7684\u83f1\u5f62\uff0c\u5305\u62ec\u5e26\u8fb9\u6846\u7684\u83f1\u5f62\u3001\u4f7f\u7528\u4e0d\u540c\u5b57\u7b26\u7684\u83f1\u5f62\u548c\u5b9e\u5fc3\u83f1\u5f62\u3002\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u9700\u8981\u751f\u6210\u5404\u79cd\u4e0d\u540c\u7684\u56fe\u6848\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u5e76\u4e14\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u80fd\u591f\u7075\u6d3b\u8fd0\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python3\u7ed8\u5236\u4e00\u4e2a\u83f1\u5f62\u7684\u57fa\u672c\u7ed3\u6784\uff1f<\/strong><br \/>\u8981\u5728Python3\u4e2d\u8f93\u51fa\u83f1\u5f62\uff0c\u60a8\u53ef\u4ee5\u5229\u7528\u5faa\u73af\u548c\u5b57\u7b26\u4e32\u64cd\u4f5c\u3002\u4e00\u4e2a\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u4e24\u4e2a\u5d4c\u5957\u5faa\u73af\uff0c\u5206\u522b\u7528\u4e8e\u6253\u5370\u83f1\u5f62\u7684\u4e0a\u534a\u90e8\u5206\u548c\u4e0b\u534a\u90e8\u5206\u3002\u901a\u8fc7\u8c03\u6574\u7a7a\u683c\u548c\u661f\u53f7\u7684\u6570\u91cf\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6240\u9700\u7684\u83f1\u5f62\u6548\u679c\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5148\u6253\u5370\u7a7a\u683c\uff0c\u7136\u540e\u6253\u5370\u661f\u53f7\uff0c\u6765\u5f62\u6210\u83f1\u5f62\u7684\u5f62\u72b6\u3002<\/p>\n<p><strong>\u5728Python3\u4e2d\uff0c\u5982\u4f55\u8c03\u6574\u83f1\u5f62\u7684\u5927\u5c0f\uff1f<\/strong><br \/>\u83f1\u5f62\u7684\u5927\u5c0f\u53ef\u4ee5\u901a\u8fc7\u6539\u53d8\u5faa\u73af\u7684\u8303\u56f4\u548c\u7a7a\u683c\u7684\u6570\u91cf\u6765\u5b9e\u73b0\u3002\u5177\u4f53\u800c\u8a00\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u53d8\u91cf\u6765\u8868\u793a\u83f1\u5f62\u7684\u9ad8\u5ea6\uff0c\u7136\u540e\u6839\u636e\u8fd9\u4e2a\u9ad8\u5ea6\u52a8\u6001\u8ba1\u7b97\u6bcf\u4e00\u884c\u7684\u7a7a\u683c\u548c\u661f\u53f7\u6570\u91cf\u3002\u8fd9\u6837\uff0c\u60a8\u5c31\u53ef\u4ee5\u8f7b\u677e\u8c03\u6574\u83f1\u5f62\u7684\u5927\u5c0f\uff0c\u53ea\u9700\u4fee\u6539\u4e00\u4e2a\u53d8\u91cf\u5373\u53ef\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528Python3\u7684\u56fe\u5f62\u5e93\u6765\u7ed8\u5236\u83f1\u5f62\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff01\u4f7f\u7528Python\u7684\u56fe\u5f62\u5e93\uff08\u5982Turtle\u6216Pygame\uff09\u53ef\u4ee5\u66f4\u76f4\u89c2\u5730\u7ed8\u5236\u83f1\u5f62\u3002\u901a\u8fc7\u56fe\u5f62\u5e93\uff0c\u60a8\u53ef\u4ee5\u63a7\u5236\u7ebf\u6761\u7684\u989c\u8272\u3001\u5bbd\u5ea6\u548c\u586b\u5145\u6548\u679c\uff0c\u4ece\u800c\u521b\u5efa\u66f4\u52a0\u7f8e\u89c2\u7684\u83f1\u5f62\u56fe\u5f62\u3002\u60a8\u53ea\u9700\u4f7f\u7528\u76f8\u5173\u51fd\u6570\u7ed8\u5236\u7ebf\u6761\uff0c\u4fbf\u53ef\u4ee5\u5728\u753b\u5e03\u4e0a\u5448\u73b0\u51fa\u5b8c\u6574\u7684\u83f1\u5f62\u5f62\u72b6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python3\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u3001\u6761\u4ef6\u5224\u65ad\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u6765\u8f93\u51fa\u83f1\u5f62\u3001\u5728\u6bcf\u4e00\u884c\u6253\u5370\u76f8\u5e94\u6570\u91cf\u7684\u7a7a\u683c\u548c\u661f\u53f7 \u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982 [&hellip;]","protected":false},"author":3,"featured_media":1185946,"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\/1185937"}],"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=1185937"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1185937\/revisions"}],"predecessor-version":[{"id":1185947,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1185937\/revisions\/1185947"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1185946"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1185937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1185937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1185937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}