Commit a9fcedba by BellCodeEditor

save project

parent 67eef80e
Showing with 10 additions and 7 deletions
username = "python"
userpassword = "123456"
name=input("账号名:")
password=input("密码:")
if (username == name and userpassword==password):
input("登录成功")
else:
input("登录失败")
\ No newline at end of file
while True:
name=input("账号名:")
password=input("密码:")
if (username == name and userpassword==password):
print("登录成功!")
break
else:
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