Commit 502e9cb8 by BellCodeEditor

save project

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