Commit 502e9cb8 by BellCodeEditor

save project

parent 00436ac3
Showing with 10 additions and 5 deletions
username = "python"
userpassword = "123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
a= input("请输入用户名:")
b = input("请输入密码:")
if a == username and b == userpassword:
print("登录成功!")
else:
print("重新输入")
if a!=username:
print('账号错')
if b!=userpassword:
print('密码错')
break
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