方法一:
list = [1,2,3,4,5] for i,jin enumerate(lis): if j ==3: print(i)
list = [1,2,3,4,5]
for i,jin enumerate(lis):
if j ==3:
print(i)
方法二:
print(list.index(3))