Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delay print in python

>>> import time
>>> import sys
>>> blah = "This is written slowly
"
>>> for l in blah:
...   sys.stdout.write(l)
...   sys.stdout.flush()
...   time.sleep(0.2)
...
This is written slowly
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delay #print #python
ADD COMMENT
Topic
Name
7+7 =