popexizhi
富足,平衡,接受自己,三斗计划,享受心流的乐趣
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
()
没有评论:
发表评论
较新的博文
较早的博文
主页
订阅:
博文评论 (Atom)
没有评论:
发表评论