Commit 04816ddc by BellCodeEditor

save project

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