摘要: 正常print一个dict,显示内容是全部在一行的。如下di = {"name":"test1", "sex":"test2", "others":[1,2,"3"]}print di{'others': [1, 2, '3'], 'name': 'test1', 'sex': 'test2'}内容少,还能看得明白,多了就不明朗了,用json库能格式化import jsondi = 阅读全文
posted @ 2013-10-28 13:29 天下.无贼 阅读(1225) 评论(0) 推荐(0)