Bombers/test.py

14 lines
647 B
Python
Raw Normal View History

2020-09-29 20:54:22 +03:00
import sys
2020-09-28 22:07:47 +03:00
import time
2020-09-29 20:54:22 +03:00
print("Loading:")
2020-09-28 22:07:47 +03:00
2020-09-29 20:54:22 +03:00
#animation = ["10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]
animation = ["[■□□□□□□□□□]","[■■□□□□□□□□]", "[■■■□□□□□□□]", "[■■■■□□□□□□]", "[■■■■■□□□□□]", "[■■■■■■□□□□]", "[■■■■■■■□□□]", "[■■■■■■■■□□]", "[■■■■■■■■■□]", "[■■■■■■■■■■]"]
2020-09-28 22:07:47 +03:00
2020-09-29 20:54:22 +03:00
for i in range(len(animation)):
time.sleep(0.2)
sys.stdout.write("\r" + animation[i % len(animation)])
sys.stdout.flush()
2020-09-28 22:07:47 +03:00
2020-09-29 20:54:22 +03:00
print("\n")