{"id":591,"date":"2019-09-07T23:40:36","date_gmt":"2019-09-07T15:40:36","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=591"},"modified":"2021-09-04T01:33:42","modified_gmt":"2021-09-03T17:33:42","slug":"python%e5%bf%ab%e9%80%9f%e5%85%a5%e9%97%a8-%e8%bf%99%e5%b0%b1%e6%98%af-python-%e4%b8%ad%e7%9a%84%e5%ad%97%e5%85%b8","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=591","title":{"rendered":"Python\u5feb\u901f\u5165\u95e8 | \u8fd9\u5c31\u662f python \u4e2d\u7684\u5b57\u5178"},"content":{"rendered":"\n<p>\u4eca\u5929\uff0c\u6211\u4eec\u7ee7\u7eed\u5b66\u4e60\u53e6\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u53eb\u505a\u5b57\u5178\uff08dict\uff09\u3002<\/p>\n\n\n\n<p>\u4ec0\u4e48\u662f dict \u5462\uff1f\u5b57\u5178\u91cc\u9762\u7684\u5143\u7d20\u662f\u7531  key : value \u7ec4\u6210\uff0c\u50cf\u8fd9\u6837\uff1a<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%3D591\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>dict.items()\uff0c\u5c06\u5b57\u5178\u4e2d\u7684\u5143\u7d20\u8f6c\u6362\u6210\u5143\u7ec4\uff0c\u5143\u7ec4\u4e2d\u7684\u5143\u7d20\u7ec4\u6210\u5217\u8868\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"826\" height=\"44\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/Screenshot-from-2019-09-07-23-35-10.png\" alt=\"\" class=\"wp-image-605\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/Screenshot-from-2019-09-07-23-35-10.png 826w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/Screenshot-from-2019-09-07-23-35-10-300x16.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/Screenshot-from-2019-09-07-23-35-10-768x41.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/09\/Screenshot-from-2019-09-07-23-35-10-769x41.png 769w\" sizes=\"(max-width: 826px) 100vw, 826px\" \/><\/figure><\/div>\n\n\n\n<p>ok\uff0c\u4ee5\u4e0a\u5c31\u662f\u5b57\u5178\u7684\u5e38\u7528\u64cd\u4f5c\u4e86\uff0c\u4f60\u53ef\u4ee5\u591a\u7ec3\u51e0\u904d\uff0c\u8fd9\u4e9b\u90fd\u8bf4\u6700\u57fa\u7840\u7684\u4e1c\u897f\uff0c\u6211\u4eec\u4ee5\u540e\u4f1a\u5e38\u5e38\u7528\u5230\u7684\u3002<\/p>\n\n\n\n<p>\u76f8\u5173\uff1apython<a href=\"https:\/\/vip.fxxkpython.com\/?p=4110\">\u5b57\u5178\u65b0\u7279\u6027<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\uff0c\u6211\u4eec\u7ee7\u7eed\u5b66\u4e60\u53e6\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u53eb\u505a\u5b57\u5178\uff08dict\uff09\u3002 \u4ec0\u4e48\u662f dict \u5462\uff1f\u5b57\u5178\u91cc\u9762\u7684\u5143\u7d20\u662f\u7531 key : value \u7ec4\u6210\uff0c\u50cf\u8fd9\u6837\uff1adict.items()\uff0c\u5c06\u5b57\u5178\u4e2d\u7684\u5143\u7d20\u8f6c\u6362\u6210\u5143\u7ec4\uff0c\u5143\u7ec4\u4e2d\u7684\u5143\u7d20\u7ec4\u6210\u5217\u8868\uff1a ok\uff0c\u4ee5\u4e0a\u5c31\u662f\u5b57\u5178\u7684\u5e38\u7528\u64cd\u4f5c\u4e86\uff0c\u4f60\u53ef&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":[57,58,19,20,59,56,51],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/591"}],"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=591"}],"version-history":[{"count":10,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/591\/revisions"}],"predecessor-version":[{"id":6675,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/591\/revisions\/6675"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}