====== 为序列中每个元素,补充一个下标 ====== ---- s='abc' for (a,b) in enumerate(s): print a,b 0 a 1 b 2 c