Commit 8e53a3ec by BellCodeEditor

save project

parent f2b0cbd0
Showing with 8 additions and 2 deletions
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正 userpassword = "123456" # 保存在服务器数据库中的用户密码(正
while True: while True:
if i>0
name=input("输如用户名") name=input("输如用户名")
password=input("输入密码") password=input("输入密码")
if name == username and password == userpassword: if name == username and password == userpassword:
...@@ -11,9 +15,11 @@ while True: ...@@ -11,9 +15,11 @@ while True:
print("用户名不存在,重输。") print("用户名不存在,重输。")
continue continue
if password !=userpassword: 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