1、while循环:当满足条件时执行
if __name__ == '__main__':
a = 1
while a < 5:
print('循环...')
a += 1
2、for循环
if __name__ == '__main__':标签:语句,__,name,python,list1,while,循环,main From: https://blog.51cto.com/u_15694134/6040538
list1 = ['zhang', 'li', 'wang']
for l in list1:
print(l)