Pause in python script execution
|
| View previous topic :: View next topic |
| Author |
Message |
PythonNewbie Guest
|
Hello!
How do I stop my python script for a period of time, 3 seconds for example,
then continue it's execution?
Thanks!
 |
| |
|
|
|
|
Madwolf Site Admin
Joined: 22 Dec 2004 Posts: 66
|
Hey PythonNewbie!
| Quote: |
| How do I stop my python script for a period of time |
Try this:
| Code: |
import time
time.sleep(3) |
It will pause the script for 3 seconds, then continue.
Cheers! |
| |
|
|
|
|