<qiyuangong>724_Find_Pivot_Index_1.py
def pivotIndex( nums):
    totalsum = sum(nums)
    leftsum = 0
    for i, v in enumerate(nums):
        if leftsum == totalsum - leftsum - v:
            return i
        leftsum += v
    return -1
def sample_funcname ( var_0 ) :
    var_2 = sum ( var_0 )
    var_4 = 0
    for var_6 , var_7 in enumerate ( var_0 ) :
        if var_4 == var_2 - var_4 - var_7 :
            return var_6
        var_4 += var_7
    return - 1
