Commit 933ab265 by BellCodeEditor

save project

parent 9fb87b26
Showing with 18 additions and 7 deletions
username = "python"
userpassword = "123456"
number=3
name = input("请输入用户名:")
while name!=username:
print("用户名错误")
name= input("请输入用户名:")
number -=1
print("你还有:"+str(number)+"次")
if number==0:
print("登录次数已上限")
exit()
name = input("请输入用户名:")
password = input("请输入密码:")
while password !=userpassword:
print("密码错误")
password= input("密码错误请重新输入")
if name == username and password == userpassword:
print("登录成功!")
print("欢迎来到贝尔编程!")
\ No newline at end of file
print("登录成功!")
else:
print("密码错误")
number -=1
print("你还有:"+str(number)+"次")
if number==0:
print("登录次数已上限")
exit()
password = input("请输入密码:")
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