Commit d29f49e2 by BellCodeEditor

save project

parent 3be1ed60
Showing with 9 additions and 2 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
i=3
username = "python"
userpassword = "123456"
while True: # 保存在服务器数据库中的用户密码(正确的密码)
if i>0:
name=input("请输入用户名:")
password=input("请输入密码:")
i=i-1
if name==username and password==userpassword:
print("登陆成功")
break
elif name!=username:
print("用户名不存在,请重新输入")
else:
print("密码错误") )
print("密码错误")
else:
print("锁定")
print("欢迎来到m78")
......
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