标签:python练习 用户名 用户 password name style span print ...
count = 0 while count<10: count += 1 if count==7: continue print(count)
count = 1 sum = 0 while count <= 100: sum = sum +count count += 1 print(sum)
count = 1 while count <= 100: if count%2!=0: print(count) count+=1
count = 1 while count <= 100: if count%2==0: print(count) count += 1
count = 1 sum = 0 while count <= 99: sum = count + sum count += 1 print(sum)
count = 0 username = "Andraw_Wu" password = "123" while count <= 2: _username = input("输入用户名") _password = input("输入密码") if username == _username and password == _password: print("登陆成功") break else: print(‘登录失败‘) count += 1 else: print("登录次数过多,只可登录三次")
标签:python练习 用户名 用户 password name style span print ...
原文地址:https://www.cnblogs.com/Andraw/p/9270760.html