python list 返回索引的方法

来源:互联网 发布:零基础学淘宝美工难吗 编辑:程序博客网 时间:2024/05/21 03:59

a = [1,2,7,6,7,8]
b = 7
c = a.index(b)
print(c)

原创粉丝点击