python_time

start = time.clock()
end = time.clock()

对想要计算运行时间的代码头尾插入。

time.sleep(s)

让程序等待,单位s

 

posted @ 2017-09-22 12:36  Bingo_Python  阅读(118)  评论(0编辑  收藏  举报