SHARE
TWEET

Untitled

a guest Feb 17th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top