Discuss / Python / 作业二

作业二

Topic source

格林匹思

#1 Created at ... [Delete] [Delete and Lock User]

def prod(L): def mul(s1,s2): return int(s1)*int(s2) #这里用了int函数,没有使用dic,感觉更快 return reduce(mul,L)


  • 1

Reply