{"id":7001,"date":"2022-11-15T14:47:20","date_gmt":"2022-11-15T06:47:20","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=7001"},"modified":"2022-11-15T14:47:22","modified_gmt":"2022-11-15T06:47:22","slug":"%e5%93%9f%e5%91%b5%ef%bc%8c%e8%bf%9b%e6%9d%a5%e4%bd%93%e9%aa%8c%e4%b8%80%e4%b8%8b%e8%bf%99-5-%e4%b8%aa-nice-%e7%9a%84-python3-11-%e6%96%b0%e7%89%b9%e6%80%a7%ef%bc%81","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=7001","title":{"rendered":"\u54df\u5475\uff0c\u8fdb\u6765\u4f53\u9a8c\u4e00\u4e0b\u8fd9 5 \u4e2a Nice \u7684 Python3.11 \u65b0\u7279\u6027\uff01"},"content":{"rendered":"\n<p><strong>1\u3001<\/strong><\/p>\n\n\n\n<p>\u524d\u4e0d\u4e45Python \u66f4\u65b0\u4e86\u6700\u65b0\u7684 3.11 \u6b63\u5f0f\u7248<\/p>\n\n\n\n<p>\u5176\u4e2d\u5439\u5f97\u6bd4\u8f83\u725b\u53c9\u7684\u5c31\u662f\uff1a<\/p>\n\n\n\n<p>\u54e5\u4eec\u53d8 \u5feb \u4e86\u54c8\u54c8\u54c8<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-edfb617f063f142a1deb9fa421ccbe82_720w.jpg\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u4f30\u8ba1 Python \u7684\u6162<\/p>\n\n\n\n<p>\u5df2\u7ecf\u88ab\u5410\u69fd\u5230 <a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247490157&amp;idx=1&amp;sn=2538bae8abf60bf5e745cfc7f24afe76&amp;chksm=ceb9e071f9ce696744bd1ee3a6b785c46a41e0b278d8a541c4aa5f9254cf28e0496716e8681b&amp;scene=21#wechat_redirect\" rel=\"noreferrer noopener\">Guido\u54e5<\/a> \u90fd\u5fcd\u4e0d\u4e86\u4e86\u5427<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-dcff486e12821c45204dde3361a41fd8_720w.jpg\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u4e8e\u662f\u5c31\u6709\u4e86\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-8cd46f7a021dea4e14a315411fbca676_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>Python3.11 \u6bd4 Python3.10 \u5feb10-60%<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-9e8f73ac8327cc77d5e9ac70325f2ac5_720w.gif\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u8fd9\u4e0d\u5f97\u8d76\u7d27\u6765\u4f53\u9a8c\u4e00\u6ce2<\/p>\n\n\n\n<p>\u5728 Python3.10 \u7248\u672c\u4e2d<\/p>\n\n\n\n<p>\u4f7f\u7528<strong>pyperformance<\/strong> \u8dd1\u4e00\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-b742bcbfd27cb4175ed69ad2f30f51e7_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u5728 Python3.11 \u4e2d\u4e5f\u8dd1\u4e00\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pica.zhimg.com\/80\/v2-fd5db7b58321975c09510f6a7866efc1_720w.jpg\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u5c06\u5f97\u5230\u7684\u4e24\u4e2a json \u6587\u4ef6\u4f7f\u7528\u8868\u683c\u7684\u5f62\u5f0f\u5bf9\u6bd4\u4e00\u6ce2<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-99953d8b6e6efd2cfa56037961662749_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230Python3.11 \u786e\u5b9e\u5feb\u4e86\u4e0d\u5c11<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-673b8783238d0da916362824ebf48ecc_720w.gif\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>2\u3001<\/strong><\/p>\n\n\n\n<p><br>\u5728 Python3.11 \u4e4b\u524d\u62a5\u9519\u4fe1\u606f\u6bd4\u8f83\u6a21\u7cca<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-c726143666126595fbf837359eeba317_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u6700\u591a\u5c31\u544a\u8bc9\u4f60\u54ea\u884c\u51fa\u9519\u4e86<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u590d\u6742\u70b9\u7684\u4ee3\u7801<\/p>\n\n\n\n<p>\u8981\u5b9a\u4f4d\u9519\u8bef\u8fd8\u662f\u633a\u9ebb\u70e6\u7684<\/p>\n\n\n\n<p>\u800c\u5728\u65b0\u7248\u672c\u4e2d\u6709\u4e86\u62a5\u9519\u65b0\u59ff\u52bf<\/p>\n\n\n\n<p>\u66f4\u52a0 \u8d34\u5fc3 \u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-dda5d05188115d04316cd5024991f16c_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u76f4\u63a5\u901a\u8fc7\u300c\uff5e\uff5e\uff5e^ ^\u300d\u5b9a\u4f4d\u5230\u5177\u4f53\u9519\u8bef\u7684\u5730\u65b9<\/p>\n\n\n\n<p>\u8fd9\u5bf9\u65b0\u624b\u6765\u8bf4<\/p>\n\n\n\n<p>\u90a3\u53ef\u662f\u76f8\u5f53\u53cb\u597d\u554a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-66663fd1cec784715863512284752c91_720w.jpg\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p><strong>3\u3001<\/strong><\/p>\n\n\n\n<p>\u8fd9\u6b21\u8fd8\u65b0\u589e\u4e86 tomllib \u5185\u7f6e\u6a21\u5757<\/p>\n\n\n\n<p>\u8fd9\u73a9\u610f\u53ef\u4ee5\u4f7f\u7528\u6781\u7b80\u7684\u914d\u7f6e\u6587\u4ef6 TOML<\/p>\n\n\n\n<p>\u6bd4\u5982\u6709\u8fd9\u4e48\u4e00\u4e2a toml \u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-1805ff3cd5d93c8e18b88ac6a396aead_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 tomllib \u6765\u8bfb\u53d6<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-ac985860bc439e9501fbdb19eab4c0b5_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pica.zhimg.com\/80\/v2-0b5440da1b0f53626f8d0184a2860354_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p><strong>4\u3001<\/strong><\/p>\n\n\n\n<p>\u8fd9\u6b21\u5bf9\u5f02\u5e38\u4e5f\u505a\u4e86\u4e9b\u6539\u8fdb<\/p>\n\n\n\n<p>\u6bd4\u5982\u4f60\u4ee3\u7801\u4e2d\u6355\u83b7\u5230\u5f02\u5e38<\/p>\n\n\n\n<p>\u53ef\u4ee5\u6dfb\u52a0 note \u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-387d92959fde59285b420d45ff823fc0_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u8fd0\u884c\u65f6\u9047\u5230\u5f02\u5e38\u5c31\u4f1a\u628a note \u4e5f\u6253\u5370\u51fa\u6765<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-e47f6835da9de45362f782ad239e9408_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u591f\u8d34\u5fc3\u5427\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-8ee10aaa9c0637c8fa34e1223b5d2237_720w.gif\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u6b64\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u6355\u83b7\u591a\u4e2a\u5f02\u5e38<\/p>\n\n\n\n<p>\u4f7f\u7528 ExceptionGroup<\/p>\n\n\n\n<p>\u6bd4\u5982\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-7e29f8f11359902d9687c159cf168a1a_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-50c8fca99cef9a1c196c363099320eed_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p><strong>5\u3001<\/strong><br>\u5728 Python3 \u5b9a\u4e49\u51fd\u6570\u7684\u65f6\u5019<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u58f0\u660e\u53c2\u6570\u7c7b\u578b\u548c\u8fd4\u56de\u7c7b\u578b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-54d6159f748f71ce03d9befd8649afab_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u800c\u5f53\u4f60\u60f3\u8981\u5728\u7c7b\u4e2d\u65b9\u6cd5\u8fd4\u56de\u5b9e\u4f8b\u7684\u65f6\u5019 <\/p>\n\n\n\n<p>\u6211\u4eec\u9700\u8981\u901a\u8fc7 TypeVar \u6765\u7ed1\u5b9a <\/p>\n\n\n\n<p>\u4ece\u800c\u8fdb\u884c\u58f0\u660e<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-cf6fa4cf9a82d1e57122abf8aca18196_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u662f\u4e0d\u662f\u7565\u5fae\u7e41\u7410\uff1f<\/p>\n\n\n\n<p>3.11 \u7248\u672c\u5728 typing \u4e2d\u65b0\u589e\u4e86 Self<\/p>\n\n\n\n<p>\u4e8e\u662f\u73b0\u5728\u5c31\u53ef\u4ee5\u76f4\u63a5\u53d8\u6210\u8fd9\u6837<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-7ad0c91481b243f664b636a88733d9fb_720w.png\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p>\u8212\u670d\u4e86\ud83d\ude0cOK\uff0c\u4ee5\u4e0a\u5c31\u662f\u5c0f\u5e05b\u89c9\u5f97\u8fd8\u4e0d\u9519\u7684\u51e0\u4e2a\u65b0\u7279\u6027\uff0c\u60f3\u770b\u66f4\u591a Python3.11 \u65b0\u73a9\u610f\uff0c\u53ef\u4ee5\u5230\u8fd9\u91cc\u4e86\u89e3\u4e00\u6ce2\uff1adocs.python.org\/3.11\/whatsnew\/ \u90a3\u4e48\uff0c\u6211\u4eec\u4e0b\u56de\u89c1\uff0c<strong>peace\uff01<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picd.zhimg.com\/80\/v2-2eceec9e17ff414236bd2b3dfccded91_720w.gif\" alt=\"\"\/><figcaption>\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<p><strong>\u6233\u4e00\u6233<\/strong><a href=\"http:\/\/vip.fxxkpython.com\u200b\" title=\"vip.fxxkpython.com\">vip.fxxkpython.com<\/a><strong>\u5b66\u4e60 Python \u6ca1\u70e6\u607c<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001 \u524d\u4e0d\u4e45Python \u66f4\u65b0\u4e86\u6700\u65b0\u7684 3.11 \u6b63\u5f0f\u7248 \u5176\u4e2d\u5439\u5f97\u6bd4\u8f83\u725b\u53c9\u7684\u5c31\u662f\uff1a \u54e5\u4eec\u53d8 \u5feb \u4e86\u54c8\u54c8\u54c8 \u4f30\u8ba1 Python \u7684\u6162 \u5df2\u7ecf\u88ab\u5410\u69fd\u5230 Guido\u54e5 \u90fd\u5fcd\u4e0d\u4e86\u4e86\u5427 \u4e8e\u662f\u5c31\u6709\u4e86\uff1a Python3.11 \u6bd4 Python3.10 \u5feb10-60%&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[303],"tags":[641,642],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/7001"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7001"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/7001\/revisions"}],"predecessor-version":[{"id":7002,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/7001\/revisions\/7002"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}