Commit c9a54ccc by BellCodeEditor

save project

parent 0799ec7c
Showing with 12 additions and 0 deletions
import random
nema=input("石头/剪刀/布")
print("玩家出拳"+nema)
list=["石头","剪刀","布"]
o=random.choice(list)
print("电脑出"+o)
if nema==0:
print("平局")
elif (nema=="石头" and o==剪刀)or(nema=="布" and o=="石头") or (nema=="剪刀" and o=="布"):
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