python 时间等待 #coding=utf-8 import time t1=time.time() time.sleep(3) t2=time.time() print(t2-t1) 输出 3.00304102898