json写入new_hello文件

#写入new文件
import  json
dic = {'name':'alex'}
i = 8
s = 'hello'
l = [11,22]
f = open("new_hello","w")
date = json.dumps(dic)
f.write(date)

 

posted @ 2016-12-13 15:54  打不死的--蟑螂  阅读(145)  评论(0编辑  收藏  举报