-
Notifications
You must be signed in to change notification settings - Fork 0
/
dzt.py
85 lines (76 loc) · 1.35 KB
/
dzt.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# from datetime import datetime
# x = {3:'qwe', 2:'rty', 1:'asd', 8:'123', 233:'234'}
# y = x.keys()
# z = []
# for i in y:
# z.append(i)
# z.sort()
# a = int(z[-1])
# print(a)
# now = str(datetime.now())
# print(now)
# for q in x.items():
# print(q)
def pict():
z = []
x = []
q, w = 0, 10
right = [
[0, 1, 2, 9],
[],
[4, 5],
[],
[],
[],
[2, 3, 4, 5],
[],
[7]
]
down = [
[],
[3, 8],
[1, 2, 8],
[1, 8],
[1, 8],
[1, 8],
[8],
[6, 8]
]
per = [
[3, 8],
[1, 2],
[3, 6],
[2, 6],
[],
[],
[1, 6],
[],
[6, 8]
]
left = [
[],
[],
[],
[3, 4, 5,]
]
z = [[0] * w for i in range(w)]
#print(z)
x = [' '] * w
for i in range(w):
x[i] = [' '] * w
#print(x)
for i in range(len(right)):
for g in right[i]:
x[i][g] = '>'
for i in range(len(down)):
for g in down[i]:
x[i][g] = '|'
for i in range(len(per)):
for g in per[i]:
x[i][g] = '+'
for i in range(len(left)):
for g in left[i]:
x[i][g] = '<'
for row in x:
print(' '.join([str(elem) for elem in row]))
pict()