Commit 415daea3 by BellCodeEditor

save project

parent 50c61398
Showing with 20 additions and 6 deletions
aa=input('你出什么') while True:
print('玩家出拳'+aa) aa=input('你出什么')
import random print('玩家出拳'+aa)
list1=["石头",'剪刀',"布"] import random
bb=random.choice(list1) list1=["石头",'剪刀',"布"]
print("电脑出拳"+bb) bb=random.choice(list1)
print("电脑出拳"+bb)
if aa in list1:
if aa==bb:
print('平局')
elif aa=='剪刀' and bb=="布" or aa=='布' and bb=='石头' or aa=='石头' and bb=='剪刀':
print('玩家赢')
else:
print('你输了')
else:
if aa==p:
break
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