Commit cbe81f53 by BellCodeEditor

auto save

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