Commit 87f80b25 by BellCodeEditor

save project

parent 4f446c7d
Showing with 23 additions and 3 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
i = 3
username = "python"
userpassword = "123456"
while True:
if i > 0:
name = input("说用户名:")
password = input("说密码:")
i-=1
if name == username and userpassword == password:
break
print("登陆失败")
if name != username:
print("账号错误")
continue
if userpassword != password:
print("账号对了,但密码错了")
else:
print("你的账号废了,滚")
exit()
print("登陆成功")
# 请用input()实现用户输入账号、密码的功能
......
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