1-10循环

tang=0
while tang<10:
    print(tang)
    tang += 1
0
1
2
3
4
5
6
7
8
9
tangs=set(['tang','yu','di'])
while tangs:
    tang=tangs.pop()
    print(tang) 
yu
di
tang
tang=set(['tang','yu','di'])
for name in tang:
    print(name)
yu
di
tang
    原文作者:karina512
    原文地址: https://www.cnblogs.com/AI-robort/p/11625397.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞