Commit e94c49b2 by BellCodeEditor

save project

parent d756617c
Showing with 14 additions and 7 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
name=input("请输入您的帐号:") while True:
password=input("请输入您的密码:") name=input("请输入您的帐号:")
if name == username and password == userpassword: password=input("请输入您的密码:")
print("登录成功!") if name == username and password == userpassword:
# 如果用户输入的账号、密码正确,提示登陆成功 print("登录成功!")
\ No newline at end of file break
if name !=username:
print("不存在")
if password != userpassword:
print("有误")
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