写入文件:
with open('CustomerRanking.json', 'w', encoding='utf-8') as ff:
ff.write(str(data_dict))
读取文件:
with open('CustomerRanking.json', 'r', encoding='utf-8') as f:
t = f.read()
写入文件:
with open('CustomerRanking.json', 'w', encoding='utf-8') as ff:
ff.write(str(data_dict))
读取文件:
with open('CustomerRanking.json', 'r', encoding='utf-8') as f:
t = f.read()