摘要: 文件处理流程 参考笔者自己画的图 文件编码 一句话 :打开文件的时候,养成良好的习惯 指定编码 f=open('aa.txt','r',encoding='utf-8') ,存的时候和打开的时候,编码一致。 以下是为了证明上边这一句真理 ·········· 文件基本操作 文件的基本操作无非就是两种 阅读全文
posted @ 2017-08-03 22:13 lazyball 阅读(167) 评论(0) 推荐(0)
摘要: 输入输出 基本的输入和输出: 输入:input() 输出:print() 打印 username=input('Please input your name:') passwd=input('Please input your password:') print(username) print(pa 阅读全文
posted @ 2017-08-03 15:05 lazyball 阅读(184) 评论(0) 推荐(0)