Commit 39c3df35 by BellCodeEditor

save project

parent 9acdf46f
Showing with 18 additions and 0 deletions
#保存用户数据
username= "python"
userpassword = "123456"
#判断
while True:
name = input("你账号是?")
if name == username:
password = input("你密码是?")
if password == userpassword:
print("登陆成功")
break
if password != userpassword:
print("密码错误")
if name != username:
print("账户错误")
continue
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