Commit 220177bb by BellCodeEditor

save project

parent b0b12391
Showing with 10 additions and 5 deletions
...@@ -5,11 +5,16 @@ while True: ...@@ -5,11 +5,16 @@ while True:
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
e=input("密码:") e=input("密码:")
while True: while True:
if i>0:
if w=="python" and e=="123456": if w=="python" and e=="123456":
input("登录成功") input("登录成功")
break break
elif name !=username: i-=1
print("用户名错误") if name !=username:
print("失败")
continue
if password !=userpassword:
print("错误")
else: else:
print("密码错误") print("账户锁定")
# 如果登录成功用户输入的账号、密码正确,提示登陆成功 # 如果登录成功用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file \ 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