python open按行读取txt 去掉\n

 

加.strip('\n')

猜你喜欢

转载自blog.csdn.net/u013288190/article/details/130600323