cc7756789w 发表于 2015-03-03 11:43

sublime的问题还是哪里写错了

不管第9行是什么都是报错

yongsheng_2012 发表于 2015-03-03 15:47

函数定义错了

def prod(list):传递的是变量

你改成

def prod(*list)试试

lion_lol 发表于 2015-03-03 23:25

回复 2# yongsheng_2012

def prod(*args):

传的是列表,要用冗余参数

   
页: [1]
查看完整版本: sublime的问题还是哪里写错了