标签:odi one pre use coding money print mil 开始
#coding=utf-8
#给列表加上序号,enumerate(l1),默认从0开始
l1=[‘money‘,‘house‘,‘joo‘]
for item in enumerate(l1,1):
#print item
print item[0],item[1]
标签:odi one pre use coding money print mil 开始
原文地址:https://www.cnblogs.com/hyy0927/p/8893305.html