Commit 32dbf8a3 by BellCodeEditor

save project

parent ff420f86
Showing with 7 additions and 6 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
username_1 = input("请输入帐号") while True:
userpassword_1= input("请输入密码") name = input("请输入用户名")
if username == userpassword_1 and userpassword_1==userpassword: password = input("请输入密码")
if name == userpassword_1 and userpassword_1==userpassword:
print("登录成功") print("登录成功")
break break
print("有户名和密码错误!请重新输入"): elif username_1 != username
print("欢迎来到贝了编程器") print("有户名和密码错误!请重新输入"):
\ No newline at end of file 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