摘要: import json, pprint# 支持的类型:字典、列表、整型、浮点型、字符串、布尔型或Nonedef LoadsAndDumps(): stringOfJsonData = '{"name": "Zophie", "isCat": true, "miceCaught": 0, "felin 阅读全文
posted @ 2017-11-10 15:43 魏桐 阅读(218) 评论(0) 推荐(0) 编辑
摘要: import csv, pprintdef ReadFile2List(): file = open('example.csv') reader = csv.reader(file) data = list(reader) pprint.pprint(data) print(data[0][2]) 阅读全文
posted @ 2017-11-10 10:52 魏桐 阅读(255) 评论(0) 推荐(0) 编辑