Commit 1afc9a2d by BellCodeEditor

save project

parent b44e39dd
Showing with 14 additions and 11 deletions
if player==computer: username = "python"
print("平局") userpassword = "123456"
elif player=="石头"and computer=="剪刀" while True:
print("恭喜,你赢了") name = input("请输入用户名:")
elif player=="剪刀"and computer=="布" password = input("请输入密码:")
print("恭喜,你赢了") if name == username and password == userpassword:
elif player=="布"and computer=="石头" print("登录成功!")
print("恭喜,你赢了") break
else: elif name !=username:
print("很遗憾,你输了") print("用户名不存在,请重新输入!")
\ No newline at end of file else:
print("密码输入有误,请重新输入!")
print("欢迎来到贝尔编程!")
\ 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