a = [1,2,7,6,7,8]
b = 7
c = a.index(b)
print(c)
python list 返回索引的方法
最新推荐文章于 2024-09-11 17:40:35 发布
a = [1,2,7,6,7,8]
b = 7
c = a.index(b)
print(c)