pythonfile的知识点
摘要:
1. file=open("/test/case1.txt","w") #open(路径+文件名,读写模式) #读写模式: r:只读(默认) rb:读二进制文件 w:新建(会覆盖原有文件) wb:写二进制文件 w+:追加写文件2. file.read() #读取文... 阅读全文
posted @ 2015-04-03 11:06 GreenBean 阅读(131) 评论(0) 推荐(0) 编辑
posted @ 2015-04-03 11:06 GreenBean 阅读(131) 评论(0) 推荐(0) 编辑
posted @ 2015-04-03 10:59 GreenBean 阅读(146) 评论(0) 推荐(0) 编辑