📜  python 按值查找索引 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:03.236000             🧑  作者: Mango

代码示例2
# To return the index of the first occurence of element x in lst
ind = lst.index(x)