Commit 76849b46 by BellCodeEditor

save project

parent 45865452
Showing with 2 additions and 1 deletions
...@@ -7,11 +7,12 @@ while True: ...@@ -7,11 +7,12 @@ while True:
i-=1 i-=1
if name!=username: if name!=username:
print('杰哥,名字不对哦') print('杰哥,名字不对哦')
print("杰哥,你还有"+str(i)+"次登录机会")
continue continue
password=input("请输入密码:") password=input("请输入密码:")
if password!=userpassword: if password!=userpassword:
print("杰哥,密码不对哦") print("杰哥,密码不对哦")
print("杰哥,你还有"+str(i)+"次登录机会")
continue continue
if name==username and password==userpassword: if name==username and password==userpassword:
print("杰哥好!") 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