首页 > 教育

defwite_to_file(content)这是什么意思

更新时间2019-03-10 21:49:17

wite_to_file(content ):    with open(r'F:0106.txt','a',encoding='utf-8') as f:        f.write(json.dumps(content,ensure_ascii=False)+' ')        f.close()        print('写入成功')

这个是别人自定义的函数

从上面的程序看,它就是将content的内容,追加写入 F:0106.txt这个文件

上一篇:性格敏感是什么意思

下一篇:I____tothezooyesterday.I____totheparktoday