Commit 53da2f76 by BellCodeEditor

save project

parent b5c6bbbe
Showing with 18 additions and 0 deletions
q=input('石头\剪刀\布')
w=['石头','剪刀','布']
if q in w:
q=input('石头\剪刀\布')
print('玩家出'+q)
import random
w=['石头','剪刀','布']
e=random.choice(w)
print('计算机出'+e)
if q==e:
print('平局')
elif (q=='石头' and e=='剪刀') or (q=='剪刀' and e=='布') or (q=='布' and e=='石头'):
print('玩家胜')
else:
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