3 lines
105 B
Python
3 lines
105 B
Python
l = [1,2,3,1,1,1,1,1,1]
|
|
# 返回元素第一次出现的下标 index(value,start,end)
|
|
print(l.index(1,5)) |