Commit 394c5227 by BellCodeEditor

auto save

parent 1d5e7f56
Showing with 3 additions and 13 deletions
y=input("请出拳(1/2/3):")# 玩家出拳 player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+y) print("玩家出拳:"+player)
i=[1,2,3] \ No newline at end of file
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