Python 查找list中的某个元素的全部的下标方法

Python 查找list中的某个元素的全部的下标方法,具备很好的参考价值python #!/usr/bin/env python # coding:utf-8 name = ['hello', 'world', 'a', 'b', 'c', 1, 2, 3, 'hello', 'world', 'a', 'b', 'c', 1, 2, 3] first_pos = 0 for i in ra
相关文章
相关标签/搜索