Commit 55ce7a2e by BellCodeEditor

save project

parent 3234ffa5
Showing with 20 additions and 0 deletions
a="xuanlang"
b="142857"
c=5
while True:
if c>0:
name=input("请输入用户名")
word=input("请输入密码")
c-=1
if name==a and word==b:
print("登录成功")
break
elif name != a:
print("用户名不存在,请重新输入")
else:
print("密码错误,请重新输入")
else:
print("错误次数过多,账户已冻结")
exit()
print("欢迎来到假山")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment