day02

# msg
Username = "yuanjie"
Password = "123"
x = 0
while(x < 3):
Username_input = input("请输入你的用户名: ");
Password_input = input("请输入你的密码: ");
x += 1
if Username == Username_input and Password == Password_input:
print("登录成功")
break
else:print("登录失败")
else:print("用户名或密码错误3次了,请一小时后再次尝试")

posted on 2019-02-03 14:22  元神出窍  阅读(113)  评论(0编辑  收藏  举报

导航