第26776题 单选题
小杨编写的如下Python高精度乘法函数中,横线处应填写的代码为?
def multiply(a, b):
    m, n = len(a), len(b)
    c = [0] * (m + n)
    for i in range(m):
        for j in range(n):
            c[i + j] += a[i] * b[j]
    carry = 0
    for k in range(len(c)):
        ——————————————————————————————
        c[k] = temp % 10
        carry = temp // 10

    while len(c) > 1 and c[-1] == 0:
        c.pop()

    return c
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析