会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wayens
博客园
首页
新随笔
联系
订阅
管理
2018年1月23日
python - 文件操作
摘要: 一、打开文件 1,import os context = "hello world! \n you are welecome !!!" 2,f = open('hello.txt','w',encoding= 'gbk') 3,f.write(context) 4,f.close() 二、文件读取
阅读全文
posted @ 2018-01-23 16:24 wayens
阅读(145)
评论(0)
推荐(0)
公告