Commit 8e53a3ec by BellCodeEditor

save project

parent f2b0cbd0
Showing with 18 additions and 12 deletions
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正 userpassword = "123456" # 保存在服务器数据库中的用户密码(正
while True: while True:
name=input("输如用户名") if i>0
password=input("输入密码") name=input("输如用户名")
if name == username and password == userpassword: password=input("输入密码")
print("登录成功") if name == username and password == userpassword:
break print("登录成功")
if name !=username: break
print("用户名不存在,重输。") if name !=username:
continue print("用户名不存在,重输。")
if password !=userpassword: continue
if password !=userpassword:
print("密码错了,重输。") print("密码错了,重输。")
print("重新登!") else:
print("账号被锁定,带身份证到公司解锁")
exit()
print("欢迎来到貝尔编程") 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