Commit 0585703d by BellCodeEditor

save project

parent 311383a8
Showing with 11 additions and 18 deletions
i=3 bro1="刘备"
username="python" bor2="关羽"
userpassword="000123451" bor3="张飞"
while True: bors = ["刘备","关羽","张飞"]
if i>0: bro1=["刘备",161,9.1]
name=input("请输入户名") bor2=["关羽",160,8.5]
passwerd =input("请输入密码") bor3=["张飞",166,8.3]
i -=1 bors[0] = "关羽"
if name==username and password==userpassword: bors[1] = "刘备"
print("登录成功") print(bors)
break \ No newline at end of file
elif name!=username:
print("你还有"+str(i)+"次登录机会")
print("用户名错误")
else:
print("密码错误,一万个小时再来")
exit()
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