Guest User

Untitled

a guest
Feb 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import sys,time
  2.  
  3. load_list=['-','/','|','\\']
  4. counter=0
  5. while counter<4:
  6. for i in load_list:
  7. loading='Loading {}'.format(i)
  8. sys.stdout.write(loading)
  9. sys.stdout.flush()
  10. time.sleep(0.08)
  11. for _ in range(len(loading)):
  12. sys.stdout.write('\033[D \033[D')
  13. sys.stdout.flush()
  14. counter+=1
Add Comment
Please, Sign In to add comment