Commit 2ba9cf39 by BellCodeEditor

save project

parent 220fe62b
Showing with 13 additions and 0 deletions
q=input('石头\剪刀\布') #play=q,计算机=e
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('你输了')
\ 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