首页 > 代码库 > 文件操作

文件操作

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

 

文件操作