会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
godlover
Trouble is a stepping stone to success!
博客园
首页
新随笔
联系
订阅
管理
2019年11月8日
文件处理(2)
摘要: 文件处理 open() f = open("文件路径","打开文件模式","指定的字符编码") f:文件句柄 #del f f.close() #回收操作系统的资源 文件上下文处理: withopen ('文件路径','打开文件模式','指定的字符编码') as f: 文件打开模式: r:只读: 1
阅读全文
posted @ 2019-11-08 21:13 godlover
阅读(122)
评论(0)
推荐(3)
编辑
公告