<分区>
索引有问题 我有一个如下所示的列表:
['Persian', 'League', 'is', 'the', 'largest', 'sport', 'event', 'dedicated',
'to', 'the', 'deprived', 'areas', 'of', 'Iran', 'Persian', 'League',
'promotes', 'peace', 'and', 'friendship', 'video', 'was', 'captured', 'by',
'one', 'of', 'our', 'heroes', 'who', 'wishes', 'peace']
我希望大写名称的打印索引大写名称如下所示:
0:Persian
1:League
13:Iran
14:Persian
15:League
但我不能像下面这样打印 reapet 索引:
0:Persian
1:League
13:Iran
0:Persian <=======
1:League <=======
请大家帮帮我!