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