py替换掉换行符

  1. for line in file.readlines():
  2.     line=line.strip('\n')
posted @ 2016-03-05 15:54  wswang  阅读(429)  评论(3编辑  收藏  举报