📜  python 按索引获取元素 - Python 代码示例

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

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