摘要: Python四种逐行读取文件内容的方法 下面四种Python逐行读取文件内容的方法, 分析了各种方法的优缺点及应用场景,以下代码在python3中测试通过, python2中运行部分代码已注释,稍加修改即可。 方法一:readline函数 # -*- coding: UTF-8 -*- f = op 阅读全文
posted @ 2020-02-13 23:42 _starsky 阅读(3576) 评论(0) 推荐(0) 编辑
摘要: leetcode 每日打卡 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel li 阅读全文
posted @ 2020-02-13 22:37 _starsky 阅读(192) 评论(0) 推荐(0) 编辑