Right-to-Left and Left-to-Right printed nicely
问题 I want it to produce the number next to a word so that I can ask the user to select the word by using the corresponding number. This is my code alt_words = hlst loopnum = 8 for i in range(loopnum): if i < len(alt_words): print('{0}. {1:<20}'.format((i+1), alt_words[i]), end =' ') if i == 0: print('', end=' ') if i + 9 <= len(alt_words): print('{0}. {1:<20}'.format((i+9), alt_words[i+8]), end =' ') if i + 17 <= len(alt_words): print('{0}. {1:<20}'.format((i+17), alt_words[i+16]), end=' ')