{"id":583,"date":"2019-09-06T01:43:35","date_gmt":"2019-09-05T17:43:35","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=583"},"modified":"2019-09-06T01:43:35","modified_gmt":"2019-09-05T17:43:35","slug":"python%e5%bf%ab%e9%80%9f%e5%85%a5%e9%97%a8-%e9%97%ae%e9%a2%98%e6%9d%a5%e4%ba%86%ef%bc%8c%e5%88%b0%e5%ba%95%e4%bb%80%e4%b9%88%e6%97%b6%e5%80%99%e7%94%a8-list-%ef%bc%8c%e4%bb%80%e4%b9%88%e6%97%b6","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=583","title":{"rendered":"Python\u5feb\u901f\u5165\u95e8 | \u95ee\u9898\u6765\u4e86\uff0c\u5230\u5e95\u4ec0\u4e48\u65f6\u5019\u7528 list \uff0c\u4ec0\u4e48\u65f6\u5019\u7528 tuple"},"content":{"rendered":"\n<p>\u7ecf\u8fc7\u524d\u9762\u7684<a href=\"https:\/\/vip.fxxkpython.com\/?p=565\">\u4e24\u7bc7<\/a>\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u77e5\u9053\u4e86 list \u548c tuple \u90fd\u662f\u4e00\u4e2a\u5b58\u653e\u5143\u7d20\u7684\u6709\u5e8f\u5217\u8868\uff0c\u503c\u5f97\u5c0f\u5e05b\u4e00\u63d0\u7684\u662f\uff0c\u5217\u8868\u548c\u5143\u7ec4\u5b83\u4eec\u4e0d\u4e00\u5b9a\u8981\u5b58\u50a8\u76f8\u540c<a href=\"https:\/\/vip.fxxkpython.com\/?p=476\">\u6570\u636e\u7c7b\u578b<\/a>\u7684\u5143\u7d20\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"421\" height=\"115\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/Screenshot-from-2019-09-06-01-04-39.png\" alt=\"\" class=\"wp-image-584\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/Screenshot-from-2019-09-06-01-04-39.png 421w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/Screenshot-from-2019-09-06-01-04-39-300x82.png 300w\" sizes=\"(max-width: 421px) 100vw, 421px\" \/><\/figure><\/div>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u4eec\u5728\u8fd9\u91cc\u9762\u5b58\u653e\u4e86 int \u3001float\u3001string \u7c7b\u578b\uff0c\u4e00\u70b9\u6bdb\u75c5\u6ca1\u6709\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u8fd8\u77e5\u9053\u4e86\u5b83\u4eec\u4e4b\u95f4\u7684\u4e0d\u540c\uff0c tuple \u662f\u4e0d\u53ef\u53d8\u7c7b\u578b\uff08immutable\uff09\uff0c\u800c list \u662f\u53ef\u53d8\u7c7b\u578b\uff08mutable\uff09\u3002\u6240\u4ee5\u5143\u7ec4\u8981\u4fee\u6539\u5217\u8868\u4e2d\u7684\u6570\u636e\u7565\u7e41\u7410\u3002<\/p>\n\n\n\n<p>\u4eca\u5929\u5c31\u544a\u8bc9\u4f60\u4e3a\u4ec0\u4e48\u8981\u8fd9\u4e48\u505a\u3002<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D583\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u6700\u540e\u7ed9\u4f60\u7559\u4e2a\u7b80\u5355\u7684\u601d\u8003\u9898\uff1a\u770b\u5b8c\u4ee5\u4e0a\u4e4b\u540e\uff0c\u4f60\u89c9\u5f97\u5143\u7ec4\u548c\u5217\u8868\u54ea\u4e2a\u6027\u80fd\u9ad8\u4e00\u4e9b\u5462\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ecf\u8fc7\u524d\u9762\u7684\u4e24\u7bc7\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u77e5\u9053\u4e86 list \u548c tuple \u90fd\u662f\u4e00\u4e2a\u5b58\u653e\u5143\u7d20\u7684\u6709\u5e8f\u5217\u8868\uff0c\u503c\u5f97\u5c0f\u5e05b\u4e00\u63d0\u7684\u662f\uff0c\u5217\u8868\u548c\u5143\u7ec4\u5b83\u4eec\u4e0d\u4e00\u5b9a\u8981\u5b58\u50a8\u76f8\u540c\u6570\u636e\u7c7b\u578b\u7684\u5143\u7d20\uff1a \u53ef\u4ee5\u770b\u5230\uff0c\u6211\u4eec\u5728\u8fd9\u91cc\u9762\u5b58\u653e\u4e86 int \u3001float\u3001string \u7c7b\u578b\uff0c\u4e00\u70b9\u6bdb\u75c5\u6ca1\u6709\u3002 \u6211\u4eec\u8fd8&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[55,27,19,20,26,54,38,52,53],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/583"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=583"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/583\/revisions"}],"predecessor-version":[{"id":589,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/583\/revisions\/589"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}