Commit 37675795 by BellCodeEditor

save project

parent fd95a0b6
Showing with 9 additions and 1 deletions
......@@ -2,5 +2,13 @@ import random
bianliang=input("玩家请出拳:(剪刀/石头/布)")
print("玩家出拳:"+bianliang)
list=["剪刀","石头","布"]
print("计算机出拳:"+random.choice(list))
jsj=random.choice(list)
print("计算机出拳:"+jsj)
if bianliang==jsj:
print("平局yeeee")
elif (bianliang=="剪刀" and jsj=="布") or (bianliang=="布" and jsj=="石头") or (bianliang=="石头" and jsj=="剪刀"):
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