python按行读取文件,如何去掉换行符"\n"

line=line.strip('\n')

posted @ 2014-03-11 21:50  aldin  阅读(204)  评论(0编辑  收藏  举报