import time from time import clock as now time1 = now() time.sleep(1) #Python用time模块的sleep函数来延时 time2 = now() print(time2-time1)