Commit 407bcee2 by BellCodeEditor

save project

parent f16c5c6e
Showing with 19 additions and 9 deletions
username = "马户" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "54188" # 保存在服务器数据库中的用户密码(正确的密码)
name=input("请输入用户账号:")
if name==username:
password=input("请输入用户密码:")
if password==userpassword:
print("登录成功")
userpassword = "54188"
i=3
while True: # 保存在服务器数据库中的用户密码(正确的密码)
name=input("请输入用户账号:")
if name==username:
password=input("请输入用户密码:")
if password==userpassword:
print("登录成功")
break
else:
print("用户密码错误")
i=i-1
continue
else:
print("用户密码错误")
else:
print("用户账号错误")
print("用户账号错误")
i=i-1
continue
if i=0:
print("您已被封号")
exit()
# 请用input()实现用户输入账号、密码的功能
......
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