Commit 4c41ddb3 by BellCodeEditor

save project

parent 036b0ebb
Showing with 12 additions and 9 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: for i in range(5):
name = input("请输入用户名:") a = input("请输入用户名:")
password = input("请输入密码:") b = input("请输入密码:")
if name != username or password != userpassword: if a != username:
print("登录失败!") print("名字错误")
continue
if b != userpassword:
print("密码错误")
else: else:
print("登录成功") print("登陆成功")
print("欢迎来到贝尔编程!") break
break print("你别用了")
\ No newline at end of file \ 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