ft8_lib/utils/convert_generator.py
2018-10-18 10:42:43 +03:00

6 lines
157 B
Python

import sys
for line in sys.stdin:
line = line.strip()
b = ['0x' + line[i*2:i*2+2] for i in range(len(line)/2)]
print '{ %s },' % (', '.join(b))