diy2.py
480 Bytes
username = "python"
userpassword = "123456"
i=3
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1
if name == username and password == userpassword:
print("登录成功!")
breakb
if name!=username:
print("yuwduwdwaytaef")
continue
if password!=username:
print("fhefegyfgeyfe")
else:
print("wyfgsgfyjagyfygygf")
exit()
print("欢迎来到贝尔编程!")