Python按行读取文件的简单实现方法 1:readline() file = open( "sample txt ") while 1: line = file readline() if not line: python编程 2022-04-05 78 点赞 1 评论 118 浏览