📜  在 python 代码示例中读取自定义分隔文件

📅  最后修改于: 2022-03-11 14:46:54.386000             🧑  作者: Mango

代码示例1
f= open("f.txt",mode='r',encoding='utf8', newline='\r\n')

# use enumerate to show that second line is read as a whole
for i, line in enumerate(fd):   
    print(i, line)