["foo", "bar", "baz"].index("bar")
python: find the index of a given value in a list
原文:http://www.cnblogs.com/qingyuanjushi/p/6220504.html