11 python 存储数据

######## 存储数据 ########
import json
numb = [11,22,33,44,55,66]
filename = "1.json"
with open(filename,'w') as f:
    json.dump(numb,f)
with open(filename) as d:
    du = json.load(d)
    print(du)

发表评论

邮箱地址不会被公开。