Finding first and last index of some value in a list in Python

first index: verts.index(value)

last index: len(verts)-1-verts[::-1].index(value)

posted @ 2019-02-28 10:19  andy_0212  阅读(202)  评论(0)    收藏  举报