Commit 7287d02a by BellCodeEditor

auto save

parent ffea4cd9
Showing with 9 additions and 3 deletions
import random
wanjia=input("请玩家出拳")
print("玩家出拳为"+wanjia)
a=input("请玩家出拳")
print("玩家出拳为"+a)
jisuanji=["石头","剪刀","布"]
b=random.choice(jisuanji)
print("计算机出拳为"+b)
if (a=="石头" and b=="剪刀") or (a=="布" and b=="石头") or (a=="石头" and b=="剪刀"):
print("玩家胜利")
elif a==b:
print("平局")
else:
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