-
Notifications
You must be signed in to change notification settings - Fork 0
/
array.py
executable file
·43 lines (38 loc) · 2.79 KB
/
array.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from numpy import *
#array([["\033[30m\033[40m#","\033[31m\033[40m#","\033[30m\033[41m#","\033[31m\033[41m#"],
# ["\033[32m\033[40m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[30m\033[42m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[32m\033[42m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"]],
# [["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"]],
# [["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"]],
# [["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"],
# ["\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#","\033[3m\033[4m#"]])
char = "Ф"
count = 0
ar = array([[["\033[30m\033[40m{}\033[0m".format(char),"\033[31m\033[40m{}\033[0m".format(char),"\033[31m\033[41m{}\033[0m".format(char)],
["\033[32m\033[40m{}\033[0m".format(char),"\033[30m\033[43m{}\033[0m".format(char),"\033[31m\033[43m{}\033[0m".format(char)],
["\033[32m\033[42m{}\033[0m".format(char),"\033[32m\033[43m{}\033[0m".format(char),"\033[33m\033[43m{}\033[0m".format(char)]],
[["\033[34m\033[40m{}\033[0m".format(char),"\033[30m\033[45m{}\033[0m".format(char),"\033[31m\033[45m{}\033[0m".format(char)],
["\033[30m\033[46m{}\033[0m".format(char),"\033[37m\033[40m{}\033[0m".format(char),"\033[37m\033[41m{}\033[0m".format(char)],
["\033[32m\033[46m{}\033[0m".format(char),"\033[37m\033[42m{}\033[0m".format(char),"\033[33m\033[47m{}\033[0m".format(char)]],
[["\033[34m\033[44m{}\033[0m".format(char),"\033[35m\033[44m{}\033[0m".format(char),"\033[35m\033[45m{}\033[0m".format(char)],
["\033[36m\033[44m{}\033[0m".format(char),"\033[37m\033[44m{}\033[0m".format(char),"\033[35m\033[47m{}\033[0m".format(char)],
["\033[36m\033[46m{}\033[0m".format(char),"\033[36m\033[47m{}\033[0m".format(char),"\033[37m\033[47m{}\033[0m".format(char)]]])
RGB = input()
for i in RGB:
count += 1
if count == 1:
R = int(i) - 1
elif count == 2:
G = int(i) - 1
elif count == 3:
B = int(i) - 1
print(ar[B, G, R])