diff --git a/catprinter.py b/catprinter.py index deb16e8..a393c07 100644 --- a/catprinter.py +++ b/catprinter.py @@ -2,13 +2,13 @@ def draw_cat(): cat = r""" - /\_/\ -( o.o ) - > ^ < + /\_/\ /\–/\ /\_/\ +( o.o ) |.>ω<.| ฅ •ﻌ• ฅ + > ^ < \___/ \___/ """ return cat -def draw_cats(num_cats): - for i in range(num_cats): +def draw_cats(): + while True: pretty_print(draw_cat()) diff --git a/main.py b/main.py index f6ee5aa..cebbf81 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ def main(): - draw_cats(10) + draw_cats() if __name__ == '__main__': main() diff --git a/printer.py b/printer.py index 7bf25e5..691b56b 100644 --- a/printer.py +++ b/printer.py @@ -1,18 +1,20 @@ import random colors = [ - "\033[91m", # Red - "\033[92m", # Green - "\033[93m", # Yellow - "-\033[94m", # Blue - "\033[95m", # Magenta - "\033[96m", # Cyan - "-\033[97m", # White + "\033[91m", # Red + "\033[92m", # Green + "\033[93m", # Yellow + "\033[94m", # Blue + "\033[95m", # Magenta + "\033[96m", # Cyan + "\033[97m", # White ] reset_color = "\033[0m" -# Делает красивый вовод сообщений def pretty_print(message): color = random.choice(colors) print(color + message + reset_color) + color = random.choice(colors) + print(color + message + reset_color) +