Commit 34a2a2c0 by BellCodeEditor

save project

parent 8dd6fbe6
Showing with 7 additions and 1 deletions
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
while True: # 保存在服务器数据库中的用户密码(正确的密码) while True:
if i>0
i-=1 # 保存在服务器数据库中的用户密码(正确的密码)
a=input("用户") a=input("用户")
b=input("密码") b=input("密码")
if username==a and userpassword ==b: if username==a and userpassword ==b:
...@@ -13,6 +16,9 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码 ...@@ -13,6 +16,9 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码
print("密码错误") print("密码错误")
else: else:
continue continue
else:
print("您的账号已被封锁,封号24时")
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