from timeit import default_timer as timer
start = timer()
###需要测试的代码,最后输出运行时间,以秒为单位
end = timer()
print(end - start)
from timeit import default_timer as timer
start = timer()
###需要测试的代码,最后输出运行时间,以秒为单位
end = timer()
print(end - start)
©2019-
柯西君_BingWong
|
pv
|
uv
Theme Tree
by WuJun
Powered by Hexo