码迷,mamicode.com
首页 > 其他好文 > 详细

文件操作

时间:2017-05-07 14:08:43      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:encoding   nbsp   打开   关闭   odi   read   bsp   读写   write   

打开  open

操作  读read  写write    open("wenjian","w" encoding utf-8)  

             open("wenjian","a" encoding utf-8)     读写

             open("wenjian","r+" encoding utf-8)   读写  

            open("wenjian","w+" encoding utf-8)   写读

关闭 colse

 

文件操作

标签:encoding   nbsp   打开   关闭   odi   read   bsp   读写   write   

原文地址:http://www.cnblogs.com/304890695h/p/6820539.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!