Commit 8ae4cdf4 by BellCodeEditor

save project

parent 220fe62b
Showing with 14 additions and 0 deletions
# 玩家出拳
import random
p=input('出拳:')
list=['石头','剪刀','布']
ch=random.choice(list)
print('wjcq:'+p)
print('jsjcq'ch)
if p==ch:
print('平局')
elif (p=='石头'and ch=='剪刀')or(p=='剪刀'and ch=='布')or(p=='布'and ch=='石头'):
print('赢了')
else:
print('艹')
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