Commit 3fe49f07 by BellCodeEditor

save project

parent 0598064a
Showing with 15 additions and 7 deletions
a=['吕']
b=['袁','公','刘','关','张','曹']
a.extend(b[2:5])
print(a)
......@@ -4,13 +4,17 @@ computer=random.choice(list)
print(computer)
player=input("请出拳")
print("玩家出拳"+player)
if player==computer:
print("平局")
elif player=="剪刀" and computer=="布":
print("玩家胜利")
elif player=="石头" and computer=="剪刀":
print("玩家胜利")
elif player=="布" and computer=="石头":
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