Commit cb376753 by BellCodeEditor

save project

parent 4ed433a1
Showing with 6 additions and 19 deletions
i=3
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: name=input("用户名")
if i>0: password=input("请输入密码")
name = input("请输入用户名:") if username==name and password==userpassword:
password = input("请输入密码:") print("登入成功")
i-=1 \ No newline at end of file
if name == username and password == userpassword:
print("登录成功!")
break
elif username!=name:
print("用户名错误")
print("剩余"+str(i)+"次机会")
elif userpassword!=password:
print("密码错误")
print("剩余"+str(i)+"次机会")
else:
print("滚")
print("欢迎来到贝尔编程!")
\ No newline at end of file
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