{"id":1489,"date":"2017-05-28T17:50:02","date_gmt":"2017-05-28T09:50:02","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1489"},"modified":"2017-05-28T17:50:30","modified_gmt":"2017-05-28T09:50:30","slug":"python-%e4%b8%ad%e6%a3%80%e6%9f%a5%e5%88%97%e8%a1%a8%e6%98%af%e5%90%a6%e4%b8%ba%e7%a9%ba%e7%9a%84%e6%9c%80%e5%a5%bd%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1489","title":{"rendered":"Python \u4e2d\u68c0\u67e5\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u7684\u6700\u597d\u65b9\u6cd5"},"content":{"rendered":"<p>\n\t<a href=\"http:\/\/baike.baidu.com\/item\/Python\" name=\"Python\" target=\"_blank\" title=\"Python\">Python<\/a> \u4e2d\u68c0\u67e5\u4e00\u4e2a\u5217\u8868\uff0c\u6570\u7ec4\uff0c\u96c6\u5408\u7684\u662f\u5426\u4e3a\u7a7a\u7684\u6700\u597d\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f\n<\/p>\n<p>\n\t\u5728\u7a0b\u5e8f\u4e2d\u5224\u65ad\u662f\u5426\u4e3a\u7a7a\u662f\u7ecf\u5e38\u6027\u4e66\u5199\u7684\u4ee3\u7801\uff0c\u4f46\u662f\u5982\u4f55\u66f4\u9ad8\u6548\u7684\u5bf9\u5217\u8868\u8fdb\u884c\u5224\u65ad\u5462\uff1f\u672c\u6587\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd Python \u4e2d\u5224\u65ad\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u7684\u6700\u597d\u529e\u6cd5\u3002\n<\/p>\n<p>\n\t\u770b\u4e0b\u9762\u7684\u4f8b\u5b50\uff1a\n<\/p>\n<pre class=\"brush:python;\">\r\na = []<\/pre>\n<p>\n\t\u6211\u600e\u4e48\u68c0\u67e5a\u662f\u7a7a\u503c\uff1f\n<\/p>\n<pre class=\"brush:python;\">\r\nif not a:\r\n  print &quot;List is empty&quot;<\/pre>\n<p>\n\t\u7528\u9690\u85cf\u7684\u7a7a\u5217\u8868\u7684\u5e03\u5c14\u503c\u624d\u662f\u6700Pythonic\u7684\u65b9\u6cd5\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1489\">Python \u4e2d\u68c0\u67e5\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u7684\u6700\u597d\u65b9\u6cd5<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>Python \u4e2d\u68c0\u67e5\u4e00\u4e2a\u5217\u8868\uff0c\u6570\u7ec4\uff0c\u96c6\u5408\u7684\u662f\u5426\u4e3a\u7a7a\u7684\u6700\u597d\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f \u5728\u7a0b\u5e8f\u4e2d\u5224\u65ad\u662f\u5426\u4e3a\u7a7a\u662f\u7ecf\u5e38\u6027\u4e66\u5199\u7684\u4ee3\u7801\uff0c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,6],"tags":[1210,1229,1213,1231,1230],"class_list":["post-1489","post","type-post","status-publish","format-standard","hentry","category-it","category-yyzt","tag-python","tag-pythonic","tag-1231","tag-1230"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1489"}],"version-history":[{"count":2,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1489\/revisions"}],"predecessor-version":[{"id":1491,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1489\/revisions\/1491"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}