{"id":237184,"date":"2021-01-01T14:11:24","date_gmt":"2021-01-01T06:11:24","guid":{"rendered":"http:\/\/4563.org\/?p=237184"},"modified":"2021-01-01T14:11:24","modified_gmt":"2021-01-01T06:11:24","slug":"python3-%e4%b8%ad%e5%ad%97%e5%85%b8%e8%bd%ac%e4%b8%ba%e5%ad%97%e7%ac%a6%e4%b8%b2%e8%bd%ac%e4%b9%89%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=237184","title":{"rendered":"Python3 \u4e2d\u5b57\u5178\u8f6c\u4e3a\u5b57\u7b26\u4e32\u8f6c\u4e49\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Python3 \u4e2d\u5b57\u5178\u8f6c\u4e3a\u5b57\u7b26\u4e32\u8f6c\u4e49\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Hiyokunotori <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>\u6211\u6709\u4e00\u4e2a\u5b57\u5178 A\uff0c\u5176\u4e2d\u4f1a\u6709\u4e00\u4e9b\u8f6c\u4e49\u7b26\u53f7<\/h1>\n<p> <\/p>\n<p>dict_a = {xxx}<\/p>\n<h1>\u8fd9\u4e2a res1 \u662f\u6211\u671f\u671b\u7684\u7ed3\u679c<\/h1>\n<p> <\/p>\n<p>res1 = r'{xxx}&#8217;<\/p>\n<h1>\u8fd9\u4e2a res2 \u4e0d\u662f\u6211\u671f\u671b\u7684\u7ed3\u679c\uff0c\u548c res1 \u5e76\u4e0d\u4e00\u81f4<\/h1>\n<p> <\/p>\n<p>res2 = str(dict_a)<\/p>\n<p>\u8bf7\u95ee\u6211\u5982\u4f55\u4f7f\u7528\u51fd\u6570\u7684\u65b9\u5f0f\u5f97\u5230 ditc_a \u7684 res1 \u7684\u7ed3\u679c\u5462<\/p>\n<p>\u4f8b\u5982 res1 = \u67d0\u4e2a\u51fd\u6570(dict_a)?<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4767830\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chenstack <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5e94\u8be5\u7ed9\u4e2a\u4f8b\u5b50\uff0c\u53ef\u4ee5\u5148\u8bd5\u8bd5 repr(dict_a)\u662f\u4e0d\u662f\u4f60\u60f3\u8981\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4767831\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : loliordie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8bf4\u7684\u4e1c\u897f \u53eb\u505a json<\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u4f60\u600e\u4e48\u4fdd\u8bc1\u6240\u6709 key \u548c value \u662f serializable \u7684? \u5148\u8003\u8651\u597d\u8fd9\u4e2a<\/p>\n<p>\u5982\u679c\u6ca1\u6709\u8fd9\u4e2a\u75db\u70b9 \u76f4\u63a5 json.dumps(dict)\u5373\u53ef                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Python3 \u4e2d\u5b57\u5178\u8f6c\u4e3a\u5b57\u7b26\u4e32\u8f6c&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\/237184"}],"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=237184"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/237184\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=237184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=237184"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=237184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}