摘要:
1、编写文件copy工具: with open('d.tet',mode='rt',encoding='utf-8') as f: f.read() with open('a.tet', mode='wt', encoding='utf-8') as f: f.write()2、编写登录程序,账号密 阅读全文
摘要:
1、open()功能的使用: 模式介绍:1、控制文件读写内容的模式: t文本与b二进制 2、控制文件读写操作的模式: r、w、a: r(默认的操作模式):只读模式,当文件不存在时 with open('d.tet',mode='rt',encoding='utf-8') as f: res=f.re 阅读全文