Commit c5cdb956 by BellCodeEditor

auto save

parent 0486b674
Showing with 23 additions and 0 deletions
c=3
username="candy"
userpassword="520527"
while True:
if c>0:
name=input("请输入你的账号")
passward=input("请输入你的密码")
c-=1
if username==name and userpassword==passward:
print("登入成功")
break
if name!=username:
print("账号错误,请重新输入")
print("温馨提示:你还有"+str(c)+"次机会")
continue
if passward!=userpassword:
print("密码错误,请重新输入")
print("温馨提示:你还有"+str(c)+"次机会")
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