摘要: 1 # 排列 2 from itertools import product 3 l = [1, 2, 3] 4 print(list(product(l, l))) 5 print(list(product(l, repeat=4))) 6 7 # 组合 8 from itertools impo 阅读全文
posted @ 2020-02-13 21:56 菜鸟新手0000 阅读(7542) 评论(0) 推荐(0)
摘要: 1 # 读取json数据为dict 2 with open('result.json', 'r', encoding='utf-8') as fp: 3 json_obj_from_file = json.load(fp) 4 5 # dict转化为dateframe 6 df = pd.DataF 阅读全文
posted @ 2020-02-13 15:37 菜鸟新手0000 阅读(1318) 评论(0) 推荐(0)