📜  从文件中删除换行符的 Python 程序 - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:11.430000             🧑  作者: Mango
代码示例1
with open('file1.txt','r+') as f:
line = f.readlines()
print(line)
[print(l.strip()) for l in line]