html tool

2018年1月7日星期日

python read line no \n


https://stackoverflow.com/questions/12330522/reading-a-file-without-newlines

accepted
You can read the whole file and split lines using str.splitlines:
temp = file.read().splitlines()

没有评论:

发表评论