首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
python按行读取
python按行读取
tech
2025-08-08
11
python按行读取存入列表:
def load_file_line(file): buffer = open(file, mode='r') str = buffer.readline() list_file = [] while str != '': list_file.append(str) str = buffer.readline() buffer.close() print(list_file)
转载请注明原文地址:https://tech.qufami.com/read-23522.html
最新回复
(
0
)