Commit 31a0e721 by BellCodeEditor

save project

parent bfc46912
Showing with 9 additions and 1 deletions
import random
player=input("请出拳(剪刀/石头/布):")
y=input("请出拳(剪刀/石头/布):")
print("玩家出:"+player)
x=random('剪刀','石头','布')
print(x)
if x==y:
print("平局")
elif (y=='石头' and x=='剪刀') or (y=='剪刀' and x=='布') or (y=='布' and x=='石头'):
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