{"id":108455,"date":"2020-05-14T16:04:11","date_gmt":"2020-05-14T08:04:11","guid":{"rendered":"http:\/\/4563.org\/?p=108455"},"modified":"2020-05-14T16:04:11","modified_gmt":"2020-05-14T08:04:11","slug":"python-%e6%80%9d%e8%b7%af","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=108455","title":{"rendered":"Python \u601d\u8def"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Python \u601d\u8def               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : v2LeoEx <\/span>  <span><i><\/i> 52<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5916\u7f51\u6709\u4e2a json \u6587\u4ef6\uff0c\u4fdd\u5b58 10 \u6761\u8bb0\u5f55\uff0c\u6bcf 2 \u5c0f\u65f6\u66f4\u65b0\u4e00\u6b21\uff0c\u5176\u4e2d\u6709\u4e00\u4e9b\u662f\u9700\u8981\u5173\u6ce8\u7684\uff0c\u8bb0\u5f55\u5230\u672c\u5730 sqlite \u4e2d\uff0c<br \/>1. \u8bbe\u8ba1\u4e00\u4e2a\u64cd\u4f5c\u8868\u7684\u7c7b \uff0c\u7528\u6765\u5f80\u8868\u91cc\u589e\u5220\u6539\u67e5\u64cd\u4f5c<br \/>2. \u8bbe\u8ba1\u4e00\u4e2a\u8868\u793a\u8bb0\u5f55\u7684\u7c7b \uff0c\u4ee3\u8868 json \u6587\u4ef6\u4e2d\u4e00\u6761\u8bb0\u5f55\uff0c \u89e3\u6790 json \u6587\u4ef6\u751f\u6210\u591a\u4e2a\u5b9e\u4f8b\uff0c\u7528 list \u4fdd\u5b58\u8d77\u6765\uff0c\u540e\u9762\u5199\u5230\u8868\u4e2d<br \/>3. \u5176\u4ed6\u4e00\u4e9b\u64cd\u4f5c\uff0c \u5f00\u59cb\u65f6\u7684\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\uff0c\u4e2d\u95f4\u7684\u722c\u53d6 json \u6587\u4ef6\u5230\u672c\u5730\u89e3\u6790\u7b49<\/p>\n<p>\u95ee\u9898\u662f 3 \u8fd9\u6b65\u662f\u5b9a\u4e49\u4e00\u4e2a\u7c7b\uff0c \u7528\u7c7b\u4e2d\u7684\u591a\u4e2a\u65b9\u6cd5\u5b9e\u73b0\u8fd9\u4e9b\u8bf8\u5982\u8bfb\u914d\u7f6e\uff0c \u722c\u53d6\u6587\u4ef6\u7684\u64cd\u4f5c\u3002 \u8fd8\u662f\u5355\u7eaf\u5199\u51e0\u4e2a\u51fd\u6570\uff0c \u5728 main()\u91cc\u987a\u5e8f\u6267\u884c \uff1f<br \/>\u6216\u8005\u8fd9\u4e48\u4e00\u4e2a\u5c0f\u7684\u529f\u80fd\uff0c\u722c\u53d6 json \u6587\u4ef6\uff0c \u89e3\u6790\uff0c \u4fdd\u5b58\u5230 sqlite \u4e2d\uff0c \u54ea\u4f4d\u5927\u4f6c\u6709\u66f4\u2018\u4f18\u96c5\u2019\u7684\u601d\u8def\uff0c <br \/>\u611f\u8c22\uff0c\u597d\u4eba\u4e00\u751f\u5e73\u5b89      <\/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=\"644570\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : watsy0007 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u4f7f\u7528\u4e09\u65b9\u64cd\u4f5c sqlite \u7c7b\u5e93.<br \/>2. \u5355\u6b21\u67e5\u8be2\u5bf9\u6bd4\u66f4\u65b0\u6570\u636e.<br \/>3. \u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1.<\/p>\n<p>\u539f\u5219: \u8d8a\u7b80\u5355\u5b9e\u73b0\u8d8a\u597d, \u4e0a\u7ebf\u518d\u8bf4.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"644571\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwwzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5199\u51e0\u4e2a\u51fd\u6570\uff0c\u5199\u4e00\u4e2a main \u65b9\u6cd5\uff0c\u5b9a\u65f6\u8fd0\u884c\u5c31\u53ef\u4ee5\u4e86\u3002\u5148\u8dd1\u8d77\u6765\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"644572\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shyrock <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u7684\u9700\u6c42\u5982\u6b64\u660e\u786e\u800c\u7b80\u5355\uff0c\u6700\u4f18\u96c5\u7684\u601d\u8def\u5c31\u662f\u4e00\u4e2a main \u91cc\u9762\u5b9e\u73b0\u6240\u6709\u903b\u8f91\u3002<br \/>\u62bd\u8c61\u662f\u4e3a\u9002\u914d\u9700\u6c42\u53d8\u52a8\u548c\u590d\u6742\u6027\u800c\u751f\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Python \u601d\u8def \u8cc7\u6df1\u5927\u4f6c : &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\/108455"}],"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=108455"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/108455\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108455"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}