Commit c06f3b30 by BellCodeEditor

save project

parent e66cf2cd
Showing with 11 additions and 4 deletions
......@@ -5,8 +5,15 @@ print("玩家"+player)
list=["石头","剪刀","布"]
letter=random.choice(list)
print("computer"+letter)
if player==letter:
print()
elif player=="石头" and letter=="剪刀"
if player == letter:
print("平")
elif player=="布" and letter=="石头":
print("玩家胜")
elif player=="剪刀" and letter=="布":
print("玩家胜")
elif player == "石头" and letter == "剪刀":
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