How to set dormancy time for python
This article is about how Python sets sleep time. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
import timefor i in companies: try: baidu(i) print ('run successful') except: print ('run failure') time.sleep(5)
time.sleep(5)
The unit in brackets is seconds.
Sleep where you put it (pause)
Thank you for reading! About "python how to set sleep time" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!