python换行

Python013

python换行,第1张

你这个需要换行吗

你这个不是就要看循环1000000000需要多少时间吗?

就是这么写的,不需要做任何改动

st是开始时间

time.time()是结束时间

time.time()-st是时间差

我的机器执行大概需要43.3279998302

没有,python的换行符是跨平台兼容的,加上一个换行符并不困难啊

不论在windows,Linux还是MAC上都只需用'\n'表示换行符

fh.write(字符串+'\n')<img

id="selectsearch-icon"

src="http://img.baidu.com/img/iknow/qb/select-search.png"

alt="搜索">