1
Archangel_SDY 2014-05-27 20:54:33 +08:00
|
2
jiang42 2014-05-27 22:33:22 +08:00
|
3
cbsw 2014-05-27 23:06:33 +08:00 1
[(i,j) for i, j in zip(lista, range(len(lista)))]
|
4
dbow 2014-05-27 23:36:39 +08:00
这样: [(v, i) for i, v in enumerate(lista)]
|