Commit beed015a by BellCodeEditor

save project

parent 45e7df7b
Showing with 15 additions and 0 deletions
s=input("玩家出拳(石头,剪刀,布)")
print("玩家出拳"+s)
import random
h=("石头","剪刀","布")
v=random.choice(h)
print("电脑出"+v)
if s==h:
if s==v :
print("平局")
elif (s=="石头" and v=="剪刀") or (s=="剪刀" and v=="布") or (s=="布" and v=="石头"):
print("你赢了")
else:
print("你shu了")
\ 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