Commit 6ec44f5e by BellCodeEditor

save project

parent 7a4884de
Showing with 11 additions and 3 deletions
username = "python"
userpassword = "123456"
i=3
while True:
if i>0:
nema = input("请输入用户名:")
password = input("请输入密码:")
i-=1
if nema == username and password == userpassword:
print("登录成功!")
break
elif nema!=username:
if nema!=username:
print("用户名输入错误请重新输入")
else:
continue
if password!=userpassword
print("密码输入戳无请重新输入")
else:
print("输入失败")
exit()
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