一、用str的replace方法
去掉字符串里的反斜杠‘\‘
>>> url = "{\"count\":4,\"sub_images\":[{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/2eba00018898cde42564\",\"width\":799,\"url_list\":[{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/2eba00018898cde42564\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/2eba00018898cde42564\"},{\"url\":\"http:\\/\\/pb1.pstatp.com\\/origin\\/2eba00018898cde42564\"}],\"uri\":\"origin\\/2eba00018898cde42564\",\"height\":1036},{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/2c440003e47ff736edb1\",\"width\":792,\"url_list\":[{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/2c440003e47ff736edb1\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/2c440003e47ff736edb1\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/2c440003e47ff736edb1\"}],\"uri\":\"origin\\/2c440003e47ff736edb1\",\"height\":1160},{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/2ebb0000cdc1531eafcc\",\"width\":800,\"url_list\":[{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/2ebb0000cdc1531eafcc\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/2ebb0000cdc1531eafcc\"},{\"url\":\"http:\\/\\/pb1.pstatp.com\\/origin\\/2ebb0000cdc1531eafcc\"}],\"uri\":\"origin\\/2ebb0000cdc1531eafcc\",\"height\":1143},{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/2eba000188c0df4c9175\",\"width\":799,\"url_list\":[{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/2eba000188c0df4c9175\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/2eba000188c0df4c9175\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/2eba000188c0df4c9175\"}],\"uri\":\"origin\\/2eba000188c0df4c9175\",\"height\":1204}],\"max_img_width\":800,\"labels\":[\"\\u7f8e\\u5973\",\"\\u6444\\u5f71\"],\"sub_abstracts\":[\"\\u8425\\u4e1a\\u5385\\u8857\\u62cd\\u5927\\u767d\\u817f\\u7f8e\\u5973\",\" \",\" \",\" \"],\"sub_titles\":[\"\\u8857\\u62cd\\uff1a\\u8425\\u4e1a\\u5385\\u8857\\u62cd\\u5927\\u767d\\u817f\\u7f8e\\u5973\\uff01\",\"\\u8857\\u62cd\\uff1a\\u8425\\u4e1a\\u5385\\u8857\\u62cd\\u5927\\u767d\\u817f\\u7f8e\\u5973\\uff01\",\"\\u8857\\u62cd\\uff1a\\u8425\\u4e1a\\u5385\\u8857\\u62cd\\u5927\\u767d\\u817f\\u7f8e\\u5973\\uff01\",\"\\u8857\\u62cd\\uff1a\\u8425\\u4e1a\\u5385\\u8857\\u62cd\\u5927\\u767d\\u817f\\u7f8e\\u5973\\uff01\"]}"
>>> url.replace('\\', '')
>>> print(url)
>>> {"count":4,"sub_images":[{"url":"http:\/\/p3.pstatp.com\/origin\/2eba00018898cde42564","width":799,"url_list":[{"url":"http:\/\/p3.pstatp.com\/origin\/2eba00018898cde42564"},{"url":"http:\/\/pb9.pstatp.com\/origin\/2eba00018898cde42564"},{"url":"http:\/\/pb1.pstatp.com\/origin\/2eba00018898cde42564"}],"uri":"origin\/2eba00018898cde42564","height":1036},{"url":"http:\/\/p1.pstatp.com\/origin\/2c440003e47ff736edb1","width":792,"url_list":[{"url":"http:\/\/p1.pstatp.com\/origin\/2c440003e47ff736edb1"},{"url":"http:\/\/pb3.pstatp.com\/origin\/2c440003e47ff736edb1"},{"url":"http:\/\/pb9.pstatp.com\/origin\/2c440003e47ff736edb1"}],"uri":"origin\/2c440003e47ff736edb1","height":1160},{"url":"http:\/\/p3.pstatp.com\/origin\/2ebb0000cdc1531eafcc","width":800,"url_list":[{"url":"http:\/\/p3.pstatp.com\/origin\/2ebb0000cdc1531eafcc"},{"url":"http:\/\/pb9.pstatp.com\/origin\/2ebb0000cdc1531eafcc"},{"url":"http:\/\/pb1.pstatp.com\/origin\/2ebb0000cdc1531eafcc"}],"uri":"origin\/2ebb0000cdc1531eafcc","height":1143},{"url":"http:\/\/p1.pstatp.com\/origin\/2eba000188c0df4c9175","width":799,"url_list":[{"url":"http:\/\/p1.pstatp.com\/origin\/2eba000188c0df4c9175"},{"url":"http:\/\/pb3.pstatp.com\/origin\/2eba000188c0df4c9175"},{"url":"http:\/\/pb9.pstatp.com\/origin\/2eba000188c0df4c9175"}],"uri":"origin\/2eba000188c0df4c9175","height":1204}],"max_img_width":800,"labels":["\u7f8e\u5973","\u6444\u5f71"],"sub_abstracts":["\u8425\u4e1a\u5385\u8857\u62cd\u5927\u767d\u817f\u7f8e\u5973"," "," "," "],"sub_titles":["\u8857\u62cd\uff1a\u8425\u4e1a\u5385\u8857\u62cd\u5927\u767d\u817f\u7f8e\u5973\uff01","\u8857\u62cd\uff1a\u8425\u4e1a\u5385\u8857\u62cd\u5927\u767d\u817f\u7f8e\u5973\uff01","\u8857\u62cd\uff1a\u8425\u4e1a\u5385\u8857\u62cd\u5927\u767d\u817f\u7f8e\u5973\uff01","\u8857\u62cd\uff1a\u8425\u4e1a\u5385\u8857\u62cd\u5927\u767d\u817f\u7f8e\u5973\uff01"]}
二、str有strip(),lstrip(),rstrip(),translate()方法