добавила пакеты matrix, calculator

This commit is contained in:
2026-05-26 09:31:03 +03:00
parent dbdd5cd26d
commit 70c5e441ae
5 changed files with 74 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env python3
import random
import time
import sys
colors = [32, 33, 34, 35, 36, 37]
chars = "01"
try:
while True:
for _ in range(random.randint(5, 20)):
for __ in range(random.randint(1, 10)):
color = random.choice(colors)
sys.stdout.write(f"\033[{color}m{random.choice(chars)}\033[0m")
sys.stdout.write(" ")
sys.stdout.write("\n")
time.sleep(0.05)
except KeyboardInterrupt:
print("\n\033[0mДождь остановлен🌧️")