Commit 7f174abf by BellCodeEditor

save project

parent 7b289382
Showing with 9 additions and 5 deletions
...@@ -4,13 +4,17 @@ print("玩家请出拳"+play) ...@@ -4,13 +4,17 @@ print("玩家请出拳"+play)
list=["石投","剪刀","不"] list=["石投","剪刀","不"]
campoter=random.choice(list) campoter=random.choice(list)
print("人机出拳:"+campoter) print("人机出拳:"+campoter)
if play==campoter:
print("平居") if player in list:
elif (player=="石投"and campoter=="剪刀")or(player=="不"and campoter=="石投")or(player=="不"and campoter=="石投"): if player == campoter:
print("平居")
elif (player=="石投"and campoter=="剪刀")or(player=="不"and campoter=="石投")or(player=="不"and campoter=="石投"):
print("你迎了") print("你迎了")
else:
print("你输了")
else: else:
print("你输了") 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