对于列表["foo", "bar", "baz"]和列表中的项目"bar",如何在Python中获取其索引(1)?
["foo", "bar", "baz"]
"bar"
python indexing list
indexing ×1
list ×1
python ×1