Commit 3fab368b by BellCodeEditor

save project

parent 7b70f4d4
Showing with 22 additions and 14 deletions
i=2
username="p"
userpassword="1"
while True:
name=input("输入账号")
pasword= input("输入密码")
if name== username and pasword==userpassword:
print("登录")
break
if name != username:
print("错了")
continue
if pasword!=userpassword:
print("cuole")
print("对")
\ No newline at end of file
if i>0:
name=input("输入账号")
pasword= input("输入密码")
i-=1
if name== username and pasword==userpassword:
print("登录cg")
break
if name != username:
print("错了")
continue
if pasword!=userpassword:
print("cuole")
print()
print("对")
else:
print("次数到达")
exit()
print("chengggonmg")
\ 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