Commit 1b0d10ec by BellCodeEditor

save project

parent b89fd232
Showing with 14 additions and 9 deletions
i=3
username = "米多" # 保存在服务器数据库中的用户账号(正确的账号) username = "米多" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "201247" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "201247" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
if i>0:
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
MD=input("请输入账号") MD=input("请输入账号")
YJ=input("请输入密码") YJ=input("请输入密码")
if MD==username and YJ==userpassword: i-=1
print("登录成功!") if MD==username and YJ==userpassword:
break print("登录成功!")
if MD != username break
print("密码错误!") if MD != username
continue print("密码错误!")
continue
else:
print("账号错误!")
else: else:
print("账号错误!") print("小屁娃儿,你TM账号遭恐怖分子冻结了,你莫得机会解锁了")
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