Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python wait 1 sec

import time
 
# Wait for 5 seconds
time.sleep(5)
 
# Wait for 300 milliseconds
# .3 can also be used
time.sleep(.300)
Comment

python wait 5 seconds then display

from time import sleep
sleep(2)   
print("hello world")
Comment

python wait for x seconds

import time
x = 1 # Put in whatever seconds you want it to wait
time.sleep(x) 
Comment

PREVIOUS NEXT
Code Example
Python :: python show all columns 
Python :: how to install OpenCV? 
Python :: ParserError: Error tokenizing data. C error: Expected 1 fields in line 87, saw 2 
Python :: simple flask hello world 
Python :: python current year 
Python :: dataframe to csv without ids 
Python :: pygame get screen width and height 
Python :: CMake Error at 3rdparty/GLFW/CMakeLists.txt:236 (message): The RandR headers were not found 
Python :: convert date string to date time string python 
Python :: cv2 grayscale 
Python :: python delete file 
Python :: python clear console 
Python :: mypy ignore line 
Python :: selenium python find all links 
Python :: model pickle file create 
Python :: python letter arr 
Python :: how to feature selection in python 
Python :: convert dataframe to float 
Python :: incognito in selenium 
Python :: drop unnamed column pandas 
Python :: unix to date python 
Python :: get mouse click coordinates python turtle 
Python :: get list of column names pandas 
Python :: set axis limits matplotlib 
Python :: how to find the longest string in a list in python 
Python :: mac install python 3.8 
Python :: days of week 
Python :: how to run python script as admin 
Python :: python tkinter underline text 
Python :: write string to file python 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =