<qiyuangong>001_Two_Sum_2.py
def twoSum( nums, target):
    hash_nums = {}
    for index, num in enumerate(nums):
        try:
            hash_nums[num].append(index)
        except KeyError:
            hash_nums[num] = [index]
    for index, num in enumerate(nums):
        another = target - num
        try:
            candicate = hash_nums[another]
            if another == num:
                if len(candicate) > 1:
                    return candicate
                else:
                    continue
            else:
                return [index, candicate[0]]
        except KeyError:
            pass
def sample_funcname ( var_0 , var_1 ) :
    var_2 = { }
    for var_4 , var_5 in enumerate ( var_0 ) :
        try :
            var_2 [ var_5 ].append ( var_4 )
        except KeyError :
            var_2 [ var_5 ] = [ var_4 ]
    for var_4 , var_5 in enumerate ( var_0 ) :
        var_8 = var_1 - var_5
        try :
            var_9 = var_2 [ var_8 ]
            if var_8 == var_5 :
                if len ( var_9 ) > 1 :
                    return var_9
                else :
                    continue
            else :
                return [ var_4 , var_9 [ 0 ] ]
        except KeyError :
            pass
