<qiyuangong>043_Multiply_Strings_2.py
def multiply( num1, num2):
    if num1 == '0' or num2 == '0':
        return '0'
    res = ''
    ls1, ls2, = len(num1), len(num2)
    ls = ls1 + ls2
    arr = [0] * ls
    for i in reversed(range(ls1)):
        for j in reversed(range(ls2)):
            arr[i + j + 1] += int(num1[i]) * int(num2[j])
    for i in reversed(range(1, ls)):
        arr[i - 1] += arr[i] / 10
        arr[i] %= 10
    pos = 0
    if arr[pos] == 0:
        pos += 1
    while pos < ls:
        res = res + str(arr[pos])
        pos += 1
    return res
def sample_funcname ( var_0 , var_1 ) :
    if var_0 == '0' or var_1 == '0' :
        return '0'
    var_4 = ''
    var_6 , var_7 , = len ( var_0 ) , len ( var_1 )
    var_8 = var_6 + var_7
    var_10 = [ 0 ] * var_8
    for var_13 in reversed ( range ( var_6 ) ) :
        for var_14 in reversed ( range ( var_7 ) ) :
            var_10 [ var_13 + var_14 + 1 ] += int ( var_0 [ var_13 ] ) * int ( var_1 [ var_14 ] )
    for var_13 in reversed ( range ( 1 , var_8 ) ) :
        var_10 [ var_13 - 1 ] += var_10 [ var_13 ] / 10
        var_10 [ var_13 ] %= 10
    var_18 = 0
    if var_10 [ var_18 ] == 0 :
        var_18 += 1
    while var_18 < var_8 :
        var_4 = var_4 + str ( var_10 [ var_18 ] )
        var_18 += 1
    return var_4
