Commit 28255355 by BellCodeEditor

save project

parent 1f7bd3d0
Showing with 28 additions and 31 deletions
player=input("请出拳:石头/剪刀/布") machine={'农夫三拳':3,'口渴可乐':3,'狗崽牛奶':4,'纳条':3,'巴东尻油':2,'没直之':4,'奥里给':4,'乐不思薯':5,'还害嗨':6}
print("玩家出拳:"+player) b=goods.pop('农夫三拳')
import random a=goods.clear()
list=["石头","剪刀","布"] print(b)
computer=random.choice(list) print(a)
print(computer) del goods
if player in list: \ No newline at end of file
if player==computer:
print("平局")
elif player=="石头" and computer=="剪刀":
print("恭喜你赢了")
elif player=="剪刀" and computer=="布":
print("恭喜你赢了")
elif player=="布" and computer=="石头":
print("恭喜你赢了")
else:
print("很遗憾你输了")
else
print("输入错误")
\ No newline at end of file
if player==computer: score={
print("平局") 'monky':{'天书':91,'输血':88,'银阁里希':85},
elif player=="石头"and computer=="剪刀": 'noi':{'天书':99,'输血':96,'银阁里希':90},
print("恭喜,你赢了") 'beanbean':{'天书':91,'输血':90,'银阁里希':12}}
elif player=="剪刀"and computer=="布" while True:
print("恭喜,你赢了) print('请输入要揍得人的名字,退出请按w')
elif player==""and computer=="石头": str=input('你要揍扁谁?')
print("恭喜你,你赢了") if str in score:
else: m=score[str]
print("很遗憾,你输了") print(str+'同学的罪证如下')
\ No newline at end of file for k,v in m.items():
print(k,v)
print('**********************')
elif str=='w':
break
else:
print('哈哈哈差个成绩都不会煞笔煞笔,再输')
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