缺失一段代码,可否有人填一下
# -*- coding:utf-8 -*-
import random
people_guess = [ x for x in map( str, input("").split(",") ) ]
guess_list = ["石头","剪刀","剪刀","布","布","石头","布"] # 电脑出拳的方式
computer_win_condition = [["布","石头"],["石头","剪刀"],["剪刀","布"]] # 每次电脑赢的情况
balance_condition = [["布","布"],["石头","石头"],["剪刀","剪刀"]] # 每次平局的情况
computer_win_number = 0 # 电脑赢的次数
people_win_number = 0 # 玩家赢得次数
#********* Begin *********#
# 在此处补全代码
#********* End *********#
# 游戏进行 7 次之后,进行输赢的判别
if computer_win_number > people_win_number:
print("电脑赢!",end="")
elif computer_win_number < people_win_number:
print( "玩家赢!", end="" )
else:
print("平局!")