Python time sleep()方法
Python 教程
· 2019-02-03 12:26:38
描述
Python time sleep() 函数推迟调用线程的运行,可通过参数secs指秒数,表示进程挂起的时间。
语法
sleep()方法语法:
time.sleep(t)
参数
- t -- 推迟执行的秒数。
返回值
该函数没有返回值。
实例
以下实例展示了 sleep() 函数的使用方法:
实例
#!/usr/bin/python
import time
print "Start : %s" % time.ctime()
time.sleep( 5 )
print "End : %s" % time.ctime()
以上实例输出结果为:
Start : Tue Feb 17 10:19:18 2013 End : Tue Feb 17 10:19:23 2013
点击查看所有 Python 教程 文章: https://codercto.com/courses/l/8.html
An Introduction to Probability Theory and Its Applications
William Feller / Wiley / 1991-1-1 / USD 120.00
Major changes in this edition include the substitution of probabilistic arguments for combinatorial artifices, and the addition of new sections on branching processes, Markov chains, and the De Moivre......一起来看看 《An Introduction to Probability Theory and Its Applications》 这本书的介绍吧!