Commit 8e53a3ec by BellCodeEditor

save project

parent f2b0cbd0
Showing with 18 additions and 12 deletions
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正
while True:
name=input("输如用户名")
password=input("输入密码")
if name == username and password == userpassword:
print("登录成功")
break
if name !=username:
print("用户名不存在,重输。")
continue
if password !=userpassword:
print("密码错了,重输。")
print("重新登!")
if i>0
name=input("输如用户名")
password=input("输入密码")
if name == username and password == userpassword:
print("登录成功")
break
if name !=username:
print("用户名不存在,重输。")
continue
if password !=userpassword:
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