📅  最后修改于: 2022-03-11 14:45:17.953000             🧑  作者: Mango
代码示例1
# to get index of each element in list using list comprehension
my_list = [1, 2, 3, 4, 5]
[(i,j) for (i,j) in enumerate(my_list)]