list_a =["a","b","c","d"] for i in list_a: print(list_a[list_a.index(i)])
a b c d
#
【Python小随笔】一个老是不能一次性的打出来的for遍历,打印索引
原文:https://www.cnblogs.com/wanghong1994/p/14177717.html