Commit b2d9ef46 by BellCodeEditor

auto save

parent 4f67aa42
Showing with 5 additions and 4 deletions
......@@ -3,13 +3,14 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
# 请用input()实现用户输入账号、密码的功能
a = input("打劫,把帐号交出来!")
b = input("把密码交出来")
b = input("把密码交出来!")
# 如果用户输入的账号、密码正确,提示登陆成功
if a==username and b==userpassword:
print("打劫成功")
else:
print("打劫失败")
else:
print("打劫成功")
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