Commit f803a958 by BellCodeEditor

save project

parent a059f9bb
Showing with 18 additions and 11 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
userpassword = "123456"
i=3
while True:
zh=input("请输入帐号")
mm=input("请输入密码")
if zh==username and mm==userpassword:
print("登录成功")
break
if zh!=username :
print("失败")
continue
if mm!=userpassword:
print("错了")
if i>0:
zh=input("请输入帐号")
mm=input("请输入密码")
i-=1
if zh==username and mm==userpassword:
print("登录成功")
break
if zh!=username :
print("失败")
continue
if mm!=userpassword:
print("错了")
else:
print("账号已锁 一")
print("欢迎")
\ No newline at end of file
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