摘要: 文件的读取 整个读取(注:rstrip()方法清楚字符串末尾的空白,strip()方法清除字符串开头的空白) 逐行读取 01 with open('C:\\Users\\Franz\\Desktop\\pi_digits.txt') as file_object: 02 contents=file_object.read();#整... 阅读全文
posted @ 2019-06-12 23:10 Franzqing 阅读(151) 评论(0) 推荐(0)