1 for item in range(3): 2 zh=input('请输入账号:') 3 mm=input('请输入密码:') 4 if zh=='admin'and mm=='123456': 5 print('密码正确!') 6 break 7 else: 8 print('密码错误!') 9 10 11 12 a=0 13 while a<3: 14 zh=input('请输入账号:') 15 mm=input('请输入密码:') 16 if zh=='admin'and mm=='123456': 17 print('密码正确!') 18 break 19 print('密码错误!') 20 a+=1 21 22 23 24 25 for item in range(1, 51): 26 if item % 5 == 0: 27 print(item) 28 print('----------------使用continue----------------------------') 29 for item in range(1, 51): 30 if item % 5 != 0: 31 continue 32 print(item)