<qiyuangong>383_Ransom_Note_1.py
def canConstruct( ransomNote, magazine):
    letter_map = {}
    for letter in magazine:
        letter_map[letter] = letter_map.get(letter, 0) + 1
    for letter in ransomNote:
        letter_map[letter] = letter_map.get(letter, 0) - 1
        if letter_map[letter] < 0:
            return False
    return True
def sample_funcname ( var_0 , var_1 ) :
    var_2 = { }
    for var_3 in var_1 :
        var_2 [ var_3 ] = var_2.get ( var_3 , 0 ) + 1
    for var_3 in var_0 :
        var_2 [ var_3 ] = var_2.get ( var_3 , 0 ) - 1
        if var_2 [ var_3 ] < 0 :
            return False
    return True
