Commit a7ea7c9f by BellCodeEditor

auto save

parent 3c0e5e98
Showing with 8 additions and 4 deletions
...@@ -8,7 +8,11 @@ s=input("userpassword:") ...@@ -8,7 +8,11 @@ s=input("userpassword:")
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
if l=="python" and s=="123456": if l=="python":
print("登录成功") print("账号正确")
if s=="123456":
print("登录成功")
else:
print("密码错误")
else: else:
print("输入错误") print("账号错误")
\ No newline at end of file \ 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