标签:下标索引 sni ati 元素 prompt images string ber enum
>>> chars = [‘a‘, ‘b‘, ‘c‘, ‘d‘]
>>> i = 0
>>> for chr in chars:
... print("%d %s"%(i, chr))
... i += 1
...
0 a
1 b
2 c
3 d
>>> chars = [‘a‘, ‘b‘, ‘c‘, ‘d‘]
>>> for i, chr in enumerate(chars):
... print i, chr
...
0 a
1 b
2 c
3 d
标签:下标索引 sni ati 元素 prompt images string ber enum
原文地址:https://www.cnblogs.com/yzg-14/p/12181756.html