```for str in 'weather':
print('str',str)
list = ['weather1','weather2','weather3']
for index in range(len(list)):
print('index',index,'的值',list[index])```
```for str in 'weather':
print('str',str)
list = ['weather1','weather2','weather3']
for index in range(len(list)):
print('index',index,'的值',list[index])```
本文标题:python for循环
本文链接:https://www.haomeiwen.com/subject/mynxsqtx.html
网友评论