标签:list class for div pre enum nbsp code logs
1 >>> list = [‘a‘,‘b‘,‘c‘] 2 >>> for i,j in enumerate(list): 3 print(i,j) 4 5 6 0 a 7 1 b 8 2 c 9 >>>
enumerate给列表加索引
原文地址:http://www.cnblogs.com/themost/p/6789544.html