Commit 1d5e7f56 by BellCodeEditor

auto save

parent 25ad6384
Showing with 10 additions and 3 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
i=["石头","剪刀","布"]
y=input("请出拳(1/2/3):")# 玩家出拳
print("玩家出拳:"+y)
i=[1,2,3]
import random
o=random.choice(i)
print(o)
if y==o
print("平局")
elif (y==1 and i==2)or (y==2 and i==3)or (y==3 and i==1):
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