Commit 390f29ad by BellCodeEditor

save project

parent a865ac80
Showing with 6 additions and 2 deletions
...@@ -13,15 +13,19 @@ while True: ...@@ -13,15 +13,19 @@ while True:
if name!=username: if name!=username:
if password!=userpassword: if password!=userpassword:
print("你是谁") print("你是谁")
print("温馨提示,您还有"+str(i)+"次登录机会")
if name!=username: if name!=username:
if password!=userpassword: if password!=userpassword:
print("密码错误") print("密码错误")
name = input("你是什么用户名:") name = input("你是什么用户名:")
else: else:
print("用户名错误") print("用户名错误")
print("温馨提示,您还有"+str(i)+"次登录机会")
else: else:
print("用户名错误") print("用户名错误")
print("温馨提示,您还有"+str(i)+"次登录机会")
if password!=userpassword: if 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