Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = [[str(e) for e in row] for row in gameStateQueue[0].gameMatrix]
- lens = [max(map(len, col)) for col in zip(*s)]
- fmt = '\t'.join('{{:{}}}'.format(x) for x in lens)
- table = [fmt.format(*row) for row in s]
- print('\n'.join(table))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement