ssoni

ASCII Art

Mar 24th, 2021 (edited)
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import sys
  2. import time
  3.  
  4. def up():
  5.     sys.stdout.write("\033[F")
  6.  
  7. def printChar(c):
  8.     sys.stdout.write('\b')  #Write a backspace
  9.     sys.stdout.write(c)
  10.     sys.stdout.flush()      #force the print NOW (before the next print)
  11.     time.sleep(.1)
  12.  
  13. chars = ["|", "/", "-", "\\", "|", "/", "-", "\\"]
  14.  
  15. for x in range (1,100):
  16.     for c in chars:
  17.         printChar(c)
  18.  
  19.  
Add Comment
Please, Sign In to add comment