PyThon随机睡眠0.01-0.001秒
PyThon随机睡眠0.01-0.001秒# 导包import timeimport randomdef sleep_random_second(num): while num < 5: # random.uniform可以实现沉睡0.01-0.001秒,需要round来保证有效数字 time.sleep(round(random.uniform(0.001, 0.01), 3)) print("=================