请问如何解决
mport random
参赛选手 = input("请出拳石头、剪刀、布")
f = ["剪刀","石头","布"]
电脑 = random.choice(f,1)
if ((参赛选手 =="剪刀" and 电脑 == "布")
or (参赛选手 == "石头" and 电脑 == "剪刀")
or (参赛选手 == "布" and 电脑 == "石头")) :
print("你出的是%s,电脑出的是%s,你赢啦"%(参赛选手,电脑))
elif 参赛选手 == 电脑 :
print("你们俩是平局")
else :
print("你出的是%s,电脑出的是%s,你输啦"%(参赛选手,电脑))
Traceback (most recent call last):
File "c:/Users/cbinh/Desktop/判断语句/剪刀石头布.py", line 4, in <module>
电脑 = random.choice(f,1)
TypeError: choice() takes 2 positional arguments but 3 were given