def compute(c, r):
s = 0;
l = len(c);
for i in range(l):
s = s + c[i]*f(r[i]);
return s
问问题
811 次
def compute(c, r):
s = 0;
l = len(c);
for i in range(l):
s = s + c[i]*f(r[i]);
return s