l = [11,22,33,55,"ss","zz"] for i,v in enumerate(l): print(i,v) #打印结果: # 0 11 # 1 22 # 2 33 # 3 55 # 4 ss # 5 zz
标签:https color code 简单 for 结果 alt onclick enumerate
l = [11,22,33,55,"ss","zz"] for i,v in enumerate(l): print(i,v) #打印结果: # 0 11 # 1 22 # 2 33 # 3 55 # 4 ss # 5 zz
标签:https color code 简单 for 结果 alt onclick enumerate
原文地址:https://www.cnblogs.com/maaosheng/p/11618782.html