python按行读取文件,去掉换行符" "

    1. for line in file.readlines():
    2.     line=line.strip(' ')
原文地址:https://www.cnblogs.com/lps365/p/3319139.html