Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,16 +1,20 @@
|
|||
COLS = 9
|
||||
|
||||
def CX(x, ran):
|
||||
while True:
|
||||
x += 2 * next(ran)
|
||||
yield x
|
||||
x += 1
|
||||
yield x
|
||||
for y in ran:
|
||||
x += 2 * y
|
||||
yield x
|
||||
x += 1
|
||||
yield x
|
||||
|
||||
ran = []
|
||||
d = -1
|
||||
for V in CX(1,iter(list(range(0,COLS,2)) + list(range(COLS-1-COLS%2,0,-2)))):
|
||||
ran.append(iter(range(V, V+COLS*d, d)))
|
||||
d *= -1
|
||||
for x in range(0,COLS):
|
||||
for y in range(x, x+COLS):
|
||||
print(repr(next(ran[y])).rjust(3), end = ' ')
|
||||
print()
|
||||
|
||||
for V in CX(1, iter(list(range(0, COLS, 2)) + list(range(COLS - 1 - COLS % 2, 0, -2)))):
|
||||
ran.append(iter(range(V, V + COLS * d, d)))
|
||||
d *= -1
|
||||
|
||||
for x in range(0, COLS):
|
||||
for y in range(x, x + COLS):
|
||||
print(repr(next(ran[y])).rjust(3), end=" ")
|
||||
print()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue