- python按照行进行读取
with open('/path/to/file', 'r') as f: for line in f.readlines(): print(line.strip()) # 把末尾的'\n'删掉
无标签
发布日期:
2023-03-16