------------------------------------------------------
product=[‘a’,’b’,’c’,’d’]
for index,item in enumerate(product):
print(index,item)
>>>
0 a
1 b
2 c
3 d
------------------------------------------------------
if a.isdigit():#判断是否为数字(1或‘1’)