摘要: a1 = {'Yuan': 30000, 'Alex': 100000, 'Egon': 50000, 'Rain': 90} #定义字典 f = open("test.txt","w+",encoding="UTF-8") #打开文件 for key in a1: #循环遍历字典 a2 = (key,str(a1[key])) #... 阅读全文
posted @ 2017-07-15 17:21 Byron-He 阅读(2698) 评论(0) 推荐(0) 编辑