<qiyuangong>345_Reverse_Vowels_of_a_String_1.py
def reverseVowels( s):
    str_index = []
    vowel = []
    res = []
    pos = -1
    for index, value in enumerate(s):
        if value in 'aeiouAEIOU':
            str_index.append(-1)
            vowel.append(value)
        else:
            str_index.append(index)
    for index in str_index:
        if index < 0:
            res.append(vowel[pos])
            pos -= 1
        else:
            res.append(s[index])
    return ''.join(res)
def sample_funcname ( var_0 ) :
    var_1 = [ ]
    var_2 = [ ]
    var_3 = [ ]
    var_5 = - 1
    for var_7 , var_8 in enumerate ( var_0 ) :
        if var_8 in 'aeiouAEIOU' :
            var_1.append ( - 1 )
            var_2.append ( var_8 )
        else :
            var_1.append ( var_7 )
    for var_7 in var_1 :
        if var_7 < 0 :
            var_3.append ( var_2 [ var_5 ] )
            var_5 -= 1
        else :
            var_3.append ( var_0 [ var_7 ] )
    return ''.join ( var_3 )
