Commit 1b0d10ec by BellCodeEditor

save project

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