会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
爱吃的馋猫
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2018年6月18日
Python的文件读写、Json模块
摘要: 一、打开文件的几种模式 1.使用open()函数打开文件,创建一个file对象,例如:f = open(r'D:\haha.txt','a+',encoding='utf-8') 或 with open(r'D:\haha.txt','a+',encoding='utf-8') as f --该种写
阅读全文
posted @ 2018-06-18 10:13 爱吃的馋猫
阅读(993)
评论(0)
推荐(0)
编辑