-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpider-Man_Across_the_Spider-Verse _(2022).py
89 lines (75 loc) · 1.43 KB
/
Spider-Man_Across_the_Spider-Verse _(2022).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
a,b = map(int, input().split(' '))
l = []
for i in range(a):
p = input()
l.append(p)
daraje = int(input())
def tabe45(l,a,b):
l1 = []
for i in range(a):
j = i
k = 0
s = ' '*(a-(i+1))
while j != -1:
s += l[j][k]
s += ' '
k += 1
j -= 1
l1.append(s)
for i in range(a):
j = a-1
k = 1+i
s = ' '*(i+1)
while k != b :
s += l[j][k]
s += ' '
k += 1
j -= 1
l1.append(s)
return l1
def tabe180(l):
return l[::-1]
def tabe90(l, a,b):
l1 = []
for j in range(b):
s = ''
for i in range(a):
s += l[i][j]
l1.append(s[::-1])
return l1
if daraje == 45 :
ja = tabe45(l,a,b)
for i in ja:
print(i)
if daraje == 90:
ja = tabe90(l,a,b)
for i in ja:
print(i)
if daraje == 135:
ja = tabe180(l,a,b)
ja = tabe45(l,a,b)
ja = ja[::-1]
for i in ja:
print(i)
if daraje == 180:
ja = tabe180(l,a,b)
for i in ja:
print(i)
if daraje == 225:
ja = tabe180(l,a,b)
ja = tabe45(l,a,b)
for i in ja:
print(i)
elif daraje == 270:
ja = tabe90(l,a,b)
ja = ja[::-1]
for i in ja:
print(i)
if daraje == 315:
ja = tabe45(l,a,b)
ja = ja[::-1]
for i in ja:
print(i)
if daraje == 360:
for i in l:
print(i)