Answers for "how to make programs still work while sleep in python"

0

sleep your computer python

import os
os.system("rundll32.exe powrprof.dll,SetSuspendState 0,1,0")
Posted by: Guest on September-27-2021
0

waiting in python. time , sleep

from time import sleep, time
sleep(1) # it is gonna sleep 1 sec. you can change the time if you want

# --- there are two ways you can do it. you can choose whatever you want

import time 
time.sleep(1) # it is gonna sleep 1 sec. you can change the time if you want
Posted by: Guest on February-07-2022

Code answers related to "how to make programs still work while sleep in python"

Python Answers by Framework

Browse Popular Code Answers by Language