Commit e596c44c by BellCodeEditor

save project

parent 54ae34dc
Showing with 5 additions and 3 deletions
c=1
c=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
......@@ -10,10 +10,12 @@ while True:
print("登陆成功")
break
if username != name:
print("密码错误")
print("用户名错误")
continue
if userpassword != password:
print("用户名错误")
print("密码错误")
print("温馨提示,还剩"+str(c)+"次机会")
else:
print("次数用完了")
exit()
......
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