首页 > 代码库 > python: find the index of a given value in a list

python: find the index of a given value in a list

["foo", "bar", "baz"].index("bar")

 

python: find the index of a given value in a list