mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-24 03:34:02 +00:00
14 lines
350 B
Python
14 lines
350 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
|
||
|
alphabet = 'MNOPQRSTUVWXYZABCDEFGHIJKL'
|
||
|
with open(sys.argv[1]) as f:
|
||
|
lines = f.readlines()
|
||
|
for c in alphabet:
|
||
|
for line, row in zip(lines, range(len(lines))):
|
||
|
for l, col in zip(line, range(len(line))):
|
||
|
if l == c:
|
||
|
print("%s,%s," % (row,col), end=' ')
|
||
|
print("255,255")
|