{"id":181960,"date":"2020-10-27T19:24:16","date_gmt":"2020-10-27T11:24:16","guid":{"rendered":"http:\/\/4563.org\/?p=181960"},"modified":"2020-10-27T19:24:16","modified_gmt":"2020-10-27T11:24:16","slug":"%e4%be%9d%e8%b5%96%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%8f%98%e9%87%8f%e8%b0%83%e7%94%a8%e5%87%bd%e6%95%b0%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=181960","title":{"rendered":"\u4f9d\u8d56\u5b57\u7b26\u4e32\u53d8\u91cf\u8c03\u7528\u51fd\u6570\u7684\u65b9\u6cd5\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4f9d\u8d56\u5b57\u7b26\u4e32\u53d8\u91cf\u8c03\u7528\u51fd\u6570\u7684\u65b9\u6cd5\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : frmongo <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u679c\u6211\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32\u53d8\u91cf a\uff0c\u8fd8\u6709\u4e00\u4e2a\u51fd\u6570 bbb, \u53d8\u91cf a \u7684\u5185\u5bb9\u662f bbb \u51fd\u6570\u7684\u540d\u79f0\u5b57\u7b26\u4e32\uff0c \u5982\u4f55\u624d\u80fd\uff0c\u4ec5\u4f9d\u9760\u53d8\u91cf a \u5c31\u8c03\u7528 bbb \u51fd\u6570\uff08\u4e0d\u4f9d\u9760 bbb \u7684\u540d\u5b57\uff09<\/p>\n<pre><code>a = \"bbb\"  def bbb():     xxx     xxx     return yyy  bbb() # \u8fd9\u662f\u4f20\u7edf\u7528\u6cd5\uff0c\u4e0d\u8fd9\u6837\u7528\uff0c\u5e0c\u671b\u5728\u53d8\u91cf a \u4e0a\u505a\u6587\u7ae0 <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3950926\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lululau <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             locals()[a]()                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3950927\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JeffGe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             func_dict = {&#8216;bbb&#8217;: bbb}<\/p>\n<p>func_dict[a]()                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3950928\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zone10 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &#8220;`python<br \/>eval(a)()<br \/>&#8220;`<\/p>\n<p>\u66f4\u590d\u6742\u7684\u7528 `exec()`                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4f9d\u8d56\u5b57\u7b26\u4e32\u53d8\u91cf\u8c03\u7528\u51fd\u6570\u7684\u65b9\u6cd5\uff1f \u8cc7&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\/181960"}],"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=181960"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/181960\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181960"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}