<qiyuangong>266_Palindrome_Permutation_1.py
def canPermutePalindrome( s):
    dic = {}
    for c in s:
        dic[c] = dic.get(c, 0) + 1
    odd, even = 0, 0
    for c in dic:
        if dic[c] % 2 == 0:
            even += 1
        else:
            odd += 1
    if odd <= 1:
        return True
    return False
def sample_funcname ( var_0 ) :
    var_1 = { }
    for var_2 in var_0 :
        var_1 [ var_2 ] = var_1.get ( var_2 , 0 ) + 1
    var_6 , var_7 = 0 , 0
    for var_2 in var_1 :
        if var_1 [ var_2 ] % 2 == 0 :
            var_7 += 1
        else :
            var_6 += 1
    if var_6 <= 1 :
        return True
    return False
