{"id":232714,"date":"2020-12-28T19:29:59","date_gmt":"2020-12-28T11:29:59","guid":{"rendered":"http:\/\/4563.org\/?p=232714"},"modified":"2020-12-28T19:29:59","modified_gmt":"2020-12-28T11:29:59","slug":"%e6%88%91-%e9%97%ae%e4%b8%aa%e9%97%ae%e9%a2%98-%e6%ad%a3%e6%96%87%e4%b8%ad%e7%9a%84-python-%e4%bb%a3%e7%a0%81-%e4%b8%ba%e4%bb%80%e4%b9%88%e5%8f%af%e4%bb%a5%e6%ad%a3%e7%a1%ae%e6%89%a7%e8%a1%8c","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=232714","title":{"rendered":"\u6211&#8230;\u95ee\u4e2a\u95ee\u9898, \u6b63\u6587\u4e2d\u7684 Python \u4ee3\u7801. \u4e3a\u4ec0\u4e48\u53ef\u4ee5\u6b63\u786e\u6267\u884c?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6211&#8230;\u95ee\u4e2a\u95ee\u9898, \u6b63\u6587\u4e2d\u7684 Python \u4ee3\u7801. \u4e3a\u4ec0\u4e48\u53ef\u4ee5\u6b63\u786e\u6267\u884c?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chaleaoch <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<pre><code>def test_func(a, \/, b):     print(a, b)   test_func(1, 2) <\/code><\/pre>\n<p>\u51fd\u6570\u53c2\u6570\u4e2d\u7684 <code>\/<\/code> \u662f\u4e2a\u5565? black \u548c flake8 \u90fd\u63d0\u793a\u5f02\u5e38,\u4f46\u662f\u786e\u5b9e\u662f\u53ef\u4ee5\u6b63\u786e\u6267\u884c\u7684. python 3.9<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4736089\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jdhao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u61c2\uff0c\u6ca1\u89c1\u8fc7\uff0c\u4e0b\u56de\u7b54                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4736090\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : chaleaoch <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u67e5\u5230\u4e86. \u4ec5\u9650\u4f4d\u7f6e\u53c2\u6570.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4736091\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Dreax <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/www.python.org\/dev\/peps\/pep-0570\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4736092\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : renmu123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             3.7 \u8fd8\u662f 3.8 \u52a0\u5165\u7684\u65b0\u8bed\u6cd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4736093\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : abersheeran <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \/ \u4e4b\u524d\u7684\u53c2\u6570\u90fd\u4e0d\u80fd\u4ee5 name=value \u8fd9\u79cd\u5f62\u5f0f\u4f20\u53c2\u3002<\/p>\n<p>\u4e0e\u4e4b\u7c7b\u4f3c\u529f\u80fd\u7684\u662f def f(a, *, b): &#8230; * \u4e4b\u540e\u7684\u90fd\u5fc5\u987b\u4ee5 name=value \u7684\u5f62\u5f0f\u4f20\u53c2\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4736094\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : XIVN1987 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @abersheeran <br \/>\u524d\u8005\u662f pos-only<br \/>\u540e\u8005\u662f kw-only                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4736095\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crayygy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Python 3.6 3.7 3.8 \u597d\u50cf\u90fd\u6709\u4e00\u4e9b\u65b0\u589e\u7684\u8bed\u6cd5\uff0c\u4e4b\u524d\u9047\u5230\u8fc7\u4e00\u6b21\u811a\u672c\u662f\u57fa\u4e8e 3.6 \u5199\u7684\uff0c\u7ed3\u679c\u5728 Ubuntu 16.04(\u9884\u88c5\u7684 Python 3.5 \u4ee5\u4e0b\u7684)\u5c31\u600e\u4e48\u4e5f\u8dd1\u4e0d\u8fc7\uff0c\u67e5\u4e86\u4ee5\u540e\u624d\u77e5\u9053                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6211&#8230;\u95ee\u4e2a\u95ee\u9898, \u6b63\u6587\u4e2d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/232714"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=232714"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/232714\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=232714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=232714"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=232714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}