Commit b909a0cd by BellCodeEditor

auto save

parent 839c0396
Showing with 12 additions and 0 deletions
import random
x = input('请输入剪刀石头布:')
print(x)
list=["剪刀","石头","布"]
a = random.choice(list)
print(a)
if x==a:
print('平局')
elif (x=='剪刀' and a=='石头' ) or (x=='剪刀' and a=="布") or (x=='布' and a =='石头' ):
print('你输了')
else:
pritn('你赢了')
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