def str_append(s, char, n):
    """
        from xdict.utils import *
        str_append('a','s',3)
    """
    append = ''
    for i in range(1, n + 1):
        append = ''.join((append, char))
    return ''.join((s, append))
