文件操作

打开  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

 

posted on 2017-05-07 13:03  博客小川  阅读(64)  评论(0)    收藏  举报