{"id":759,"date":"2025-01-05T22:39:16","date_gmt":"2025-01-05T14:39:16","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=759"},"modified":"2025-01-05T22:39:16","modified_gmt":"2025-01-05T14:39:16","slug":"python-3-9%e8%87%aa2-0%e4%bb%a5%e6%9d%a5%e4%b8%bb%e8%a6%81%e7%9a%84%e5%8f%98%e5%8c%96%e6%9c%89%e5%93%aa%e4%ba%9b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/05\/python-3-9%e8%87%aa2-0%e4%bb%a5%e6%9d%a5%e4%b8%bb%e8%a6%81%e7%9a%84%e5%8f%98%e5%8c%96%e6%9c%89%e5%93%aa%e4%ba%9b%ef%bc%9f\/","title":{"rendered":"Python 3.9\u81ea2.0\u4ee5\u6765\u4e3b\u8981\u7684\u53d8\u5316\u6709\u54ea\u4e9b\uff1f"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u4ece Python 2.0 \u5230 Python 3.9 \u7684\u8fc7\u6e21\u8de8\u8d8a\u4e86\u591a\u4e2a\u7248\u672c\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u8bb8\u591a\u91cd\u5927\u7684\u529f\u80fd\u6539\u8fdb\u3001\u8bed\u6cd5\u53d8\u66f4\u4ee5\u53ca\u6027\u80fd\u4f18\u5316\u3002\u4ee5\u4e0b\u662f\u4e3b\u8981\u7684\u53d8\u5316\u548c\u66f4\u65b0\uff0c\u6309\u7167 Python 3.x \u7684\u7248\u672c\u9010\u6b65\u5c55\u5f00\uff0c\u91cd\u70b9\u6982\u8ff0\u4e86\u5404\u7248\u672c\u7684\u4e3b\u8981\u53d8\u5316\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Python 3.0 (2008)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python 3.0 \u662f\u4e00\u6b21 <strong>\u4e0d\u517c\u5bb9\u7684\u91cd\u5927\u66f4\u65b0<\/strong>\uff0c\u6807\u5fd7\u7740 Python \u8bed\u8a00\u7684\u4e00\u4e2a\u65b0\u7eaa\u5143\u3002\u5b83\u5f7b\u5e95\u6e05\u7406\u4e86 Python 2.x \u7684\u4e00\u4e9b\u8bbe\u8ba1\u4e0a\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e3b\u8981\u53d8\u5316\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>print<\/code> \u53d8\u6210\u51fd\u6570<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 2.x \u4e2d\uff0c<code>print<\/code> \u662f\u8bed\u53e5\uff0c\u800c\u5728 Python 3.x \u4e2d\uff0c\u5b83\u6210\u4e3a\u4e86\u51fd\u6570\uff0c\u5fc5\u987b\u4f7f\u7528\u62ec\u53f7\uff1a<br><code>python print(\"Hello\")<\/code><\/li>\n\n\n\n<li><strong>\u6574\u6570\u9664\u6cd5<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 2.x \u4e2d\uff0c\u6574\u6570\u9664\u6cd5\u4f1a\u8fd4\u56de\u6574\u6570\uff0c\u800c Python 3.x \u4e2d\uff0c\u6574\u6570\u9664\u6cd5\u9ed8\u8ba4\u8fd4\u56de\u6d6e\u70b9\u6570\u3002\u5982\u679c\u9700\u8981\u5730\u677f\u9664\uff0c\u4f7f\u7528 <code>\/\/<\/code>\uff1a<br><code>python 3 \/ 2 # \u8f93\u51fa 1.5 \u5728 Python 3.x \u4e2d 3 \/\/ 2 # \u8f93\u51fa 1<\/code><\/li>\n\n\n\n<li><strong>\u5b57\u7b26\u4e32\u5904\u7406<\/strong>\uff1a<\/li>\n\n\n\n<li>\u9ed8\u8ba4\u7684\u5b57\u7b26\u4e32\u7c7b\u578b\u4ece ASCII \u8f6c\u53d8\u4e3a Unicode\uff0c\u56e0\u6b64\u6240\u6709\u7684\u5b57\u7b26\u4e32\u5728 Python 3.x \u4e2d\u90fd\u662f Unicode \u7c7b\u578b\u3002\u5b57\u8282\u5b57\u7b26\u4e32\u9700\u8981\u7528 <code>b\"...\"<\/code> \u8868\u793a\u3002<\/li>\n\n\n\n<li><strong>\u79fb\u9664 <code>xrange()<\/code><\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.x \u4e2d\uff0c<code>range()<\/code> \u53d8\u6210\u4e86\u4e00\u4e2a\u60f0\u6027\u8fed\u4ee3\u5668\uff0c\u4ee3\u66ff\u4e86 Python 2.x \u4e2d\u7684 <code>range()<\/code> \u548c <code>xrange()<\/code>\u3002<\/li>\n\n\n\n<li><strong><code>input()<\/code> \u51fd\u6570\u53d8\u66f4<\/strong>\uff1a<\/li>\n\n\n\n<li>\u5728 Python 2.x \u4e2d\uff0c<code>input()<\/code> \u4f1a\u5c06\u8f93\u5165\u89e3\u6790\u4e3a Python \u8868\u8fbe\u5f0f\uff0c\u800c <code>raw_input()<\/code> \u7528\u6765\u83b7\u53d6\u5b57\u7b26\u4e32\u8f93\u5165\u3002Python 3.x \u4e2d\uff0c<code>input()<\/code> \u603b\u662f\u8fd4\u56de\u5b57\u7b26\u4e32\uff0c<code>raw_input()<\/code> \u88ab\u79fb\u9664\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Python 3.1 &#8211; 3.4 (2009 &#8211; 2014)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e9b\u7248\u672c\u4e3b\u8981\u662f\u5bf9 Python 3.0 \u7684\u7a33\u5b9a\u6027\u8fdb\u884c\u4fee\u590d\uff0c\u5e76\u5f15\u5165\u4e86\u4e00\u4e9b\u65b0\u7279\u6027\uff0c\u6539\u5584\u4e86\u8bed\u8a00\u7684\u6027\u80fd\u548c\u5f00\u53d1\u4f53\u9a8c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e3b\u8981\u53d8\u5316\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5f15\u5165 <code>argparse<\/code><\/strong>\uff1a<\/li>\n\n\n\n<li><code>argparse<\/code> \u5e93\u6210\u4e3a\u4e86\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u7528\u4e8e\u547d\u4ee4\u884c\u53c2\u6570\u7684\u89e3\u6790\uff0c\u53d6\u4ee3\u4e86 Python 2.x \u4e2d\u7684 <code>optparse<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u65b0\u5f0f\u7c7b\u548c\u5185\u5b58\u4f18\u5316<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3 \u5bf9\u7c7b\u7684\u5b9e\u73b0\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u5185\u5b58\u6d88\u8017\u66f4\u5c11\uff0c\u7279\u522b\u662f\u5728\u5bf9\u8c61\u5b58\u50a8\u548c\u7ba1\u7406\u65b9\u9762\u3002<\/li>\n\n\n\n<li><strong><code>bytes<\/code> \u548c <code>bytearray<\/code><\/strong>\uff1a<\/li>\n\n\n\n<li>\u5f15\u5165\u4e86 <code>bytes<\/code> \u548c <code>bytearray<\/code> \u7c7b\u578b\uff0c\u5904\u7406\u4e8c\u8fdb\u5236\u6570\u636e\u66f4\u52a0\u660e\u786e\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>Python 3.5 (2015)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python 3.5 \u5f15\u5165\u4e86\u8bb8\u591a\u65b0\u7684\u7279\u6027\uff0c\u4f7f\u5f97 Python 3 \u66f4\u52a0\u73b0\u4ee3\u5316\u548c\u6613\u7528\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e3b\u8981\u53d8\u5316\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>async<\/code> \u548c <code>await<\/code> \u5173\u952e\u5b57<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.5 \u5f15\u5165\u4e86 <code>async<\/code> \u548c <code>await<\/code> \u5173\u952e\u5b57\uff0c\u652f\u6301\u539f\u751f\u7684\u5f02\u6b65\u7f16\u7a0b\uff0c\u4f7f\u5f97 Python \u53ef\u4ee5\u66f4\u52a0\u9ad8\u6548\u5730\u5904\u7406 I\/O \u5bc6\u96c6\u578b\u4efb\u52a1\u3002<\/li>\n\n\n\n<li>\u8fd9\u662f Python \u4e2d\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b\u7684\u5173\u952e\u7a81\u7834\u3002<\/li>\n\n\n\n<li>\u793a\u4f8b\uff1a<br><code>python async def fetch_data(): await some_async_function()<\/code><\/li>\n\n\n\n<li><strong>\u7c7b\u578b\u6ce8\u89e3<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.5 \u5f15\u5165\u4e86\u7c7b\u578b\u6ce8\u89e3\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u4e3a\u51fd\u6570\u53c2\u6570\u548c\u8fd4\u56de\u503c\u6307\u5b9a\u7c7b\u578b\uff1a<br><code>python def greet(name: str) -> str: return f\"Hello, {name}\"<\/code><\/li>\n\n\n\n<li><strong>\u65b0\u7684 <code>matrix multiplication<\/code> \u64cd\u4f5c\u7b26 <code>@<\/code><\/strong>\uff1a<\/li>\n\n\n\n<li>\u5f15\u5165\u4e86\u65b0\u7684 <code>@<\/code> \u64cd\u4f5c\u7b26\uff0c\u7528\u4e8e\u77e9\u9635\u4e58\u6cd5\uff08NumPy \u4e2d\u5e38\u89c1\uff09\uff0c\u8fd9\u4e2a\u7279\u6027\u5bf9\u79d1\u5b66\u8ba1\u7b97\u975e\u5e38\u6709\u7528\u3002<br><code>python import numpy as np result = A @ B<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>Python 3.6 (2016)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python 3.6 \u5f15\u5165\u4e86\u591a\u9879\u4fbf\u5229\u6027\u548c\u6027\u80fd\u7684\u6539\u8fdb\uff0c\u5c24\u5176\u662f\u5728\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u548c\u5b57\u5178\u64cd\u4f5c\u65b9\u9762\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e3b\u8981\u53d8\u5316\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff09<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.6 \u5f15\u5165\u4e86 f-string\uff0c\u8fd9\u662f\u4e00\u79cd\u65b0\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u7b80\u6d01\u4e14\u9ad8\u6548\uff1a<br><code>python name = \"Alice\" greeting = f\"Hello, {name}!\"<\/code><\/li>\n\n\n\n<li><strong>\u5b57\u5178\u987a\u5e8f\u4fdd\u6301\u63d2\u5165\u987a\u5e8f<\/strong>\uff1a<\/li>\n\n\n\n<li>\u4ece Python 3.6 \u5f00\u59cb\uff0c\u5b57\u5178\u5728\u63d2\u5165\u987a\u5e8f\u4e0a\u662f\u6709\u5e8f\u7684\u3002\u8fd9\u5728 Python 3.7 \u4e2d\u6210\u4e3a\u4e86\u8bed\u8a00\u7684\u89c4\u8303\u3002<\/li>\n\n\n\n<li><strong><code>secrets<\/code> \u6a21\u5757<\/strong>\uff1a<\/li>\n\n\n\n<li>\u5f15\u5165\u4e86 <code>secrets<\/code> \u6a21\u5757\uff0c\u7528\u4e8e\u751f\u6210\u5b89\u5168\u7684\u968f\u673a\u6570\uff0c\u9002\u7528\u4e8e\u5bc6\u7801\u5b66\u7528\u9014\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>Python 3.7 (2018)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python 3.7 \u7ee7\u7eed\u589e\u5f3a\u4e86\u8bed\u8a00\u7684\u7b80\u6d01\u6027\u548c\u6027\u80fd\uff0c\u7279\u522b\u662f\u7c7b\u578b\u6ce8\u89e3\u548c\u6570\u636e\u7c7b\uff08dataclass\uff09\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e3b\u8981\u53d8\u5316\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6570\u636e\u7c7b\uff08dataclass\uff09<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.7 \u5f15\u5165\u4e86 <code>dataclasses<\/code> \u6a21\u5757\uff0c\u4f7f\u5f97\u521b\u5efa\u7c7b\u66f4\u52a0\u7b80\u6d01\uff0c\u81ea\u52a8\u751f\u6210 <code>__init__()<\/code> \u548c\u5176\u4ed6\u5e38\u89c1\u65b9\u6cd5\uff1a<br><code>python from dataclasses import dataclass @dataclass class Person: name: str age: int<\/code><\/li>\n\n\n\n<li><strong><code>asyncio<\/code> \u6539\u8fdb<\/strong>\uff1a<\/li>\n\n\n\n<li><code>asyncio<\/code> \u5f97\u5230\u4e86\u6539\u8fdb\uff0c\u7279\u522b\u662f\u5728\u5f02\u5e38\u5904\u7406\u548c\u534f\u7a0b\u7684\u652f\u6301\u65b9\u9762\u3002<\/li>\n\n\n\n<li><strong>\u66f4\u5feb\u7684\u5b57\u8282\u7801\u548c\u6027\u80fd\u6539\u8fdb<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.7 \u5728\u6027\u80fd\u4e0a\u8fdb\u884c\u4e86\u591a\u9879\u4f18\u5316\uff0c\u5c24\u5176\u662f\u5728\u5bf9\u8c61\u521b\u5efa\u3001\u5c5e\u6027\u8bbf\u95ee\u7b49\u65b9\u9762\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">6. <strong>Python 3.8 (2019)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python 3.8 \u5e26\u6765\u4e86\u8bb8\u591a\u65b0\u7279\u6027\uff0c\u5176\u4e2d\u4e00\u4e9b\u662f\u8bed\u6cd5\u4e0a\u7684\u589e\u5f3a\u548c\u4e00\u4e9b\u6027\u80fd\u4f18\u5316\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e3b\u8981\u53d8\u5316\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6d77\u8c61\u8fd0\u7b97\u7b26 <code>:=<\/code><\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.8 \u5f15\u5165\u4e86\u6d77\u8c61\u8fd0\u7b97\u7b26\uff08walrus operator\uff09\uff0c\u7528\u4e8e\u5728\u8868\u8fbe\u5f0f\u4e2d\u540c\u65f6\u8d4b\u503c\u548c\u8fd4\u56de\u503c\uff0c\u5e38\u7528\u4e8e\u5faa\u73af\u548c\u6761\u4ef6\u8868\u8fbe\u5f0f\uff1a<br><code>python if (n := len(data)) > 10: print(f\"List is too long ({n} elements)\")<\/code><\/li>\n\n\n\n<li><strong>\u4f4d\u7f6e\u53c2\u6570<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.8 \u5f15\u5165\u4e86\u4f4d\u7f6e\u53c2\u6570\uff08<code>\/<\/code>\uff09\u8bed\u6cd5\uff0c\u5f3a\u5236\u67d0\u4e9b\u53c2\u6570\u53ea\u80fd\u901a\u8fc7\u4f4d\u7f6e\u4f20\u9012\uff0c\u800c\u4e0d\u80fd\u901a\u8fc7\u5173\u952e\u5b57\u4f20\u9012\uff1a<br><code>python def greet(name, \/): print(f\"Hello, {name}\")<\/code><\/li>\n\n\n\n<li><strong><code>f-string<\/code> \u652f\u6301\u7b49\u5f0f<\/strong>\uff1a<\/li>\n\n\n\n<li>f-string \u652f\u6301\u7b49\u5f0f\u663e\u793a\uff08<code>f'{expr=}'<\/code>\uff09\uff0c\u4f7f\u5f97\u8c03\u8bd5\u548c\u65e5\u5fd7\u8bb0\u5f55\u53d8\u5f97\u66f4\u52a0\u7b80\u4fbf\uff1a<br><code>python x = 42 print(f'{x=}') # \u8f93\u51fa: x=42<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">7. <strong>Python 3.9 (2020)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python 3.9 \u8fdb\u4e00\u6b65\u589e\u5f3a\u4e86\u8bed\u8a00\u7684\u7b80\u6d01\u6027\u548c\u4e00\u4e9b\u6807\u51c6\u5e93\u7684\u6539\u8fdb\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e3b\u8981\u53d8\u5316\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b57\u5178\u5408\u5e76\u548c\u66f4\u65b0\u8fd0\u7b97\u7b26<\/strong>\uff1a<\/li>\n\n\n\n<li>Python 3.9 \u5f15\u5165\u4e86\u5b57\u5178\u7684\u5408\u5e76\uff08<code>|<\/code>\uff09\u548c\u66f4\u65b0\uff08<code>|=<\/code>\uff09\u8fd0\u7b97\u7b26\uff1a<br><code>python dict1 = {'a': 1, 'b': 2} dict2 = {'b': 3, 'c': 4} result = dict1 | dict2 # \u5408\u5e76\u5b57\u5178 print(result) # \u8f93\u51fa: {'a': 1, 'b': 3, 'c': 4}<\/code><\/li>\n\n\n\n<li><strong>\u79fb\u9664\u65e7\u7684\u6a21\u5757\u548c\u529f\u80fd<\/strong>\uff1a<\/li>\n\n\n\n<li>\u5220\u9664\u4e86 Python 2.x \u4e2d\u7684\u4e00\u4e9b\u8fc7\u65f6\u6a21\u5757\u548c\u529f\u80fd\uff0c\u4f8b\u5982 <code>collections.OrderedDict<\/code> \u7684\u65b9\u6cd5\u5df2\u7ecf\u88ab\u6807\u51c6\u5316\u3002<\/li>\n\n\n\n<li><strong>Type Hinting \u6539\u8fdb<\/strong>\uff1a<\/li>\n\n\n\n<li>\u5728 Python 3.9 \u4e2d\uff0c\u7c7b\u578b\u63d0\u793a\u5f97\u5230\u4e86\u8fdb\u4e00\u6b65\u7684\u589e\u5f3a\uff0c\u652f\u6301\u66f4\u591a\u7684\u8bed\u6cd5\uff0c\u4f8b\u5982\u4f7f\u7528 <code>list<\/code> \u548c <code>dict<\/code> \u6765\u6307\u5b9a\u7c7b\u578b\uff1a<br><code>python def greet(names: list[str]) -> dict[str, int]: return {name: len(name) for name in names}<\/code><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u603b\u7ed3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ece Python 2.0 \u5230 Python 3.9 \u7684\u66f4\u65b0\uff0cPython \u8bed\u8a00\u7ecf\u5386\u4e86 <strong>\u4e0d\u517c\u5bb9\u7684\u5927\u5e45\u5ea6\u6539\u8fdb<\/strong>\uff0c\u5305\u62ec\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8bed\u6cd5\u6539\u52a8<\/strong>\uff1a<code>print<\/code> \u51fd\u6570\u3001\u6574\u6570\u9664\u6cd5\u7684\u6539\u53d8\u3001\u7c7b\u578b\u6ce8\u89e3\u3001\u5f02\u6b65\u7f16\u7a0b\u652f\u6301\u7b49\u3002<\/li>\n\n\n\n<li><strong>\u6027\u80fd\u63d0\u5347<\/strong>\uff1a\u5185\u5b58\u4f18\u5316\u3001\u5b57\u8282\u7801\u6267\u884c\u901f\u5ea6\u7684\u63d0\u5347\u3001<code>asyncio<\/code> \u548c\u5f02\u6b65\u7f16\u7a0b\u7684\u5f15\u5165\u3002<\/li>\n\n\n\n<li><strong>\u5e93\u7684\u6539\u8fdb\u548c\u6e05\u7406<\/strong>\uff1a\u79fb\u9664\u4e0d\u5fc5\u8981\u7684\u65e7\u5e93\uff0c\u589e\u52a0\u4e86\u5bf9\u73b0\u4ee3\u7f16\u7a0b\u98ce\u683c\u7684\u652f\u6301\u3002<\/li>\n\n\n\n<li><strong>\u7c7b\u578b\u6ce8\u89e3<\/strong>\uff1aPython 3.x \u5f15\u5165\u5e76\u5b8c\u5584\u4e86\u7c7b\u578b\u6ce8\u89e3\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u53ef\u8bfb\u548c\u53ef\u7ef4\u62a4\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e9b\u53d8\u5316\u4f7f\u5f97 Python \u53d8\u5f97\u66f4\u52a0\u73b0\u4ee3\u5316\u3001\u9ad8\u6548\u3001\u6613\u7528\uff0c\u5e76\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u548c\u66f4\u591a\u7684\u7f16\u7a0b\u53ef\u80fd\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece Python 2.0 \u5230 Python 3.9 \u7684\u8fc7\u6e21\u8de8\u8d8a\u4e86\u591a\u4e2a\u7248\u672c\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u8bb8\u591a\u91cd\u5927\u7684\u529f\u80fd\u6539\u8fdb\u3001\u8bed\u6cd5\u53d8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-759","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/759\/revisions"}],"predecessor-version":[{"id":760,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/759\/revisions\/760"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}