Commit b4971846 by BellCodeEditor

save project

parent b810c294
Showing with 21 additions and 0 deletions
i=3
userpassword = "yjt123456"
while True: # 保存在服务器数据库中的用户密码(正确的密码)
name = input("请输入用户名:")
print("小伙子,你还可以尝试"+str(i)+"次机会")
password=input("请输入密码:")
print("小伙子,你还可以尝试"+str(i)+"次机会")
i-=i
if username==name and userpassword==password:
print("登录成功")
break
if name != username:
print("大鲨币!连用户名都忘了")
continue
if password != userpassword:
print("大鲨币!连密码都忘了")
else:
print("就说你是大鲨币,密码是yjt123456")
exit()
print("欢迎来到贝尔编程")# 请用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