Junjun&3588 个人博客

-个人博客-
热爱技术,喜欢科技. Hello Coder!!
  1. 首页
  2. 编程语言
  3. python
  4. 正文

最简单python 字典保存为txt

2021-02-16 644点热度 0人点赞 0条评论

fundDict ={}

# 添加自动到需要fundDict
fundDict.update(fundInfoData)

# 防止中文出现问题
dictJs = json.dumps(fundDict, ensure_ascii=False)
file = open('../data/' + fundCode + '.txt', 'w', encoding='utf-8')
file.write(dictJs)
file.close()

标签: 暂无
最后更新:2021-02-16

admin3588

这个人很懒,什么都没留下

点赞
< 上一篇

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

COPYRIGHT © 2022 Junjun&3588 个人博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang