Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set dormancy time for python

Shulou Source: shulou.com Published: 2022-06-01 05:12:44 10月03日 Update

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!

Tags: Hibernation time location content more articles running good practical successful units parentheses articles see knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Information MySQL Microsoft MariaDB