Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # !/usr/bin/python
- # -*- coding: utf-8 -*-
- import time
- STEPS = [
- "⡿",
- "⣟",
- "⣯",
- "⣷",
- "⣾",
- "⣽",
- "⣻",
- "⢿",
- ]
- def loading(seconds):
- i = 0
- while i < 10*seconds:
- char = STEPS[i % len(STEPS)]
- print(f"\rLoading... {char}", end="", flush=True)
- time.sleep(0.1)
- i += 1
- if __name__ == "__main__":
- loading(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement