for index, element in enumerate(['hello','world']):
print(index)
print(element)
python 进行for循环时同时获取列表值与索引值
最新推荐文章于 2023-05-05 08:59:41 发布
for index, element in enumerate(['hello','world']):
print(index)
print(element)