<qiyuangong>038_Count_and_Say_1.py
def count( x):
    m = list(x)
    res = []
    m.append(None)
    i , j = 0 , 0
    while i < len(m) - 1:
        j += 1
        if m[j] != m[i]:
            res += [j - i, m[i]]
            i = j
    return ''.join(str(s) for s in res)
def sample_funcname ( var_0 ) :
    var_2 = list ( var_0 )
    var_3 = [ ]
    var_2.append ( None )
    var_7 , var_8 = 0 , 0
    while var_7 < len ( var_2 ) - 1 :
        var_8 += 1
        if var_2 [ var_8 ] != var_2 [ var_7 ] :
            var_3 += [ var_8 - var_7 , var_2 [ var_7 ] ]
            var_7 = var_8
    return ''.join ( str ( var_14 ) for var_14 in var_3 )
