Commit af885f4b by BellCodeEditor

save project

parent 7fa1443b
Showing with 15 additions and 3 deletions
usename="fhhhb"
usemima="we are dsb"
cishu=3
while True:
if cishu==0:
print("错误次数太多,您的帐号已冻结")
exit()
name=input("请输入账户名:")
mima=input("请输入密码:")
if usename==name and usemima==mima:
print("登陆成功")
print("-"*30)
break
if usename!=name :
if usename!=name and usemima==mima:
print("账户名错误❌")
print("登陆失败")
print("-"*30)
continue
if usemima!=mima :
cishu=cishu-1
if usemima!=mima and usename==name:
print("密码错误❌")
print("登陆失败")
print("-"*30)
cishu=cishu-1
else:
print("账户和密码错误❌")
print("登陆失败")
print("-"*30)
cishu=cishu-1
print("欢迎来到对抗路")
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