{"id":437651,"date":"2021-04-19T00:28:47","date_gmt":"2021-04-18T16:28:47","guid":{"rendered":"http:\/\/4563.org\/?p=437651"},"modified":"2021-04-19T00:28:47","modified_gmt":"2021-04-18T16:28:47","slug":"%e6%9c%89%e6%b2%a1%e6%9c%89%e6%96%b9%e6%b3%95%e8%8e%b7%e5%8f%96%e5%88%b0%e4%b8%80%e4%b8%aa-py-%e6%96%87%e4%bb%b6%e4%b8%ad%e6%89%80%e6%9c%89%e6%96%b9%e6%b3%95%e7%9a%84%e5%90%8d%e7%a7%b0%e9%99%a4","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=437651","title":{"rendered":"\u6709\u6ca1\u6709\u65b9\u6cd5\u83b7\u53d6\u5230\u4e00\u4e2a py \u6587\u4ef6\u4e2d\u6240\u6709\u65b9\u6cd5\u7684\u540d\u79f0,\u9664\u4e86\u4f7f\u7528\u6b63\u5219\u5339\u914d"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6709\u6ca1\u6709\u65b9\u6cd5\u83b7\u53d6\u5230\u4e00\u4e2a py \u6587\u4ef6\u4e2d\u6240\u6709\u65b9\u6cd5\u7684\u540d\u79f0,\u9664\u4e86\u4f7f\u7528\u6b63\u5219\u5339\u914d               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : alittlecode <\/span>  <span><i><\/i> 12<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u4e00\u5207\u7686\u4e3a\u5bf9\u8c61<br \/>import re<br \/>dir(re)      <\/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=\"5648528\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imn1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @imn1 \u8fd9\u6837\u628a\u5f15\u5165\u7684\u53d8\u91cf\u4ec0\u4e48\u7684\u90fd\u5305\u542b\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5648529\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : alittlecode <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ast \u6a21\u5757                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5648530\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : est <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             for item in re.__all__:<br \/> print(item, hasattr(getattr(re, item), &#8216;__call__&#8217;))                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5648531\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : demobin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @alittlecode #2<br \/>\u4f60\u81ea\u5df1\u591a\u60f3\u4e00\u6b65\u4e0d\u884c\u4e48\uff1f\u6709\u4e2a\u5185\u7f6e\u51fd\u6570\u53eb callable()<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u66f4\u201c\u6b63\u5f0f\u201d\u4e00\u70b9\uff0c\u4ee5\u524d\u6709\u4e2a\u5305\u53eb optparse\uff0c\u4e0d\u8fc7\u5df2\u7ecf\u5e9f\u5f03\u4e86<br \/>\u73b0\u5728\u53ef\u4ee5\u7528 inspect\uff0ctyping \u4e4b\u7c7b\u7684\u81ea\u5df1\u7ec4\u7ec7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5648532\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imn1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u901a\u8fc7 importlib                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5648533\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chionetw5 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             inspect.getmembers(promotions, inspect.isfunction)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5648534\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xiaolinjia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             inspect \u6a21\u5757                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u6ca1\u6709\u65b9\u6cd5\u83b7\u53d6\u5230\u4e00\u4e2a py \u6587\u4ef6\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\/437651"}],"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=437651"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/437651\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437651"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}