Commit 5d92a2ff by BellCodeEditor

save project

parent 1e34967c
Showing with 10 additions and 4 deletions
...@@ -5,10 +5,16 @@ word=input("请&入密码") ...@@ -5,10 +5,16 @@ word=input("请&入密码")
while True: while True:
if username==name and userpassword==word: if username==name and userpassword==word:
print("登录成功") print("登录成功")
break brea
if name !=username: if name !=username:
print("wcnm") print("用户错误")
if userpassword: print("温馨提示:您还有"+str(i)+"次登录机会")
continue
if userpassword ==word:
print("温馨提示:您还有"+str(i)+"次登录机会")
print("广东话") print("广东话")
print("欢迎来到贝尔编程") else:
print("次数用完,锁定")
exit()
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