python time测试
import time def timer(seconds): start_time = time.time() while True: elapsed_time = time.time() - start_time if elapsed_time >= seconds: break print("Time's up!")
timer(10) # runs for 10 seconds
#####################
标签:10,start,python,timer,seconds,测试,time From: https://www.cnblogs.com/herd/p/17297781.html