Commit 04816ddc by BellCodeEditor

save project

parent 9ecbf409
Showing with 7 additions and 6 deletions
username="python" username="python"
userpassword="123456" userpassword="123456"
name=input("请输入你的账户名:") while True:
password=input("请输入你的密码:") name=input("请输入你的账户名:")
if username==name and userpassword==password: password=input("请输入你的密码:")
if username==name and userpassword==password:
print("登陆成功!") print("登陆成功!")
else: break
print("登陆失败!") else:
\ No newline at end of file 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