Commit 4de95726 by BellCodeEditor

auto save

parent 41476d0f
Showing with 5 additions and 1 deletions
...@@ -5,13 +5,17 @@ while True: ...@@ -5,13 +5,17 @@ while True:
if i>0: if i>0:
name=input("用户名") name=input("用户名")
passward=input("用户密码") passward=input("用户密码")
i-=1
if name==username and password==userpassword: if name==username and password==userpassword:
print("正确") print("正确")
break() break
if name!=username: if name!=username:
print("名字错了") print("名字错了")
print("你还有"+str(i)+"次机会")
continue
if passward!=userpassward: if passward!=userpassward:
print("密码错了") print("密码错了")
print("你还有"+str+"次机会")
else: else:
print("你没机会了") print("你没机会了")
exit() exit()
......
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