Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
if string has unicode chars, the built-in l/rjust cannot 
auto-adjust and align, that's why this two functions come

        def ljust(s,n,fillchar=' '):
    """ if string has unicode chars, the built-in l/rjust cannot 
    auto-adjust and align, that's why this two functions come"""
    no_ascii_list = re.findall(r'[^\x00-\x7F]+', s)
    ln = len(''.join(no_ascii_list))
    return s.ljust(n-ln, fillchar)
        


src/z/h/zhuaxia-HEAD/zhuaxia/downloader.py   zhuaxia(Download)
    for filename, percent in progress.items():
        sum_percent += percent
        bar = util.ljust('=' * int(percent * bar_count), bar_count)
        per100 = percent * 100 
        single_p =  fmt_progress % \
    #global progress
    g_text = u'总进度[%d/%d]:'% (done, total)
    g_bar = util.ljust('#' * int(total_percent* bar_count), bar_count)
    g_progress =  fmt_progress % \
                (util.rjust(g_text,(width - bar_count -10)), g_bar, 100*total_percent) # the -10 is for the xx.x% and [ and ]