MathTop
文档
/
函数参考
indices 函数
返回列表元素的一基索引。
语法
indices(list)
Indices(list)
参数与选项
list
形如 [1, 2, 3] 的列表字面量。
示例
列表索引
indices([x, y, z])
返回 [1, 2, 3]。
相关函数与文档
enumerate
length