<qiyuangong>415_Add_Strings_2.py
def addStrings( num1, num2):
    res = []
    pos1 = len(num1) - 1
    pos2 = len(num2) - 1
    carry = 0
    while pos1 >= 0 or pos2 >= 0 or carry == 1:
        digit1 = digit2 = 0
        if pos1 >= 0:
            digit1 = ord(num1[pos1]) - ord('0')
        if pos2 >= 0:
            digit2 = ord(num2[pos2]) - ord('0')
        res.append(str((digit1 + digit2 + carry) % 10))
        carry = (digit1 + digit2 + carry) / 10
        pos1 -= 1
        pos2 -= 1
    return ''.join(res[::-1])
def sample_funcname ( var_0 , var_1 ) :
    var_2 = [ ]
    var_5 = len ( var_0 ) - 1
    var_6 = len ( var_1 ) - 1
    var_8 = 0
    while var_5 >= 0 or var_6 >= 0 or var_8 == 1 :
        var_10 = var_9 = 0
        if var_5 >= 0 :
            var_10 = ord ( var_0 [ var_5 ] ) - ord ( '0' )
        if var_6 >= 0 :
            var_9 = ord ( var_1 [ var_6 ] ) - ord ( '0' )
        var_2.append ( str ( ( var_10 + var_9 + var_8 ) % 10 ) )
        var_8 = ( var_10 + var_9 + var_8 ) / 10
        var_5 -= 1
        var_6 -= 1
    return ''.join ( var_2 [ : : - 1 ] )
