Commit 04816ddc by BellCodeEditor

save project

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