Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # py3_basic_spin.py
- import time
- def spin():
- for _ in range(100):
- for ch in '-\\|/':
- print(ch, end='', flush=True)
- time.sleep(0.1)
- print('\b', end='', flush=True)
- if __name__ == '__main__':
- spin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement