Exemple #1
0
def maxwidth(l) :
    m=0
    for i in l:
        n=width(i['f'])
        if n>m :
            m=n
    return m
Exemple #2
0
def maxwidth(l):  # noqa: E741
    m = 0
    for i in l:
        n = width(i['f'])
        if n > m:
            m = n
    return m
Exemple #3
0
def printinfo(o,m) :
    "打印单条内容"
    if 'x' in o :
        print('%s、\t' %(o['x']) , end='')
    print('%s\t' %(o['f']),end='')
    t=width(o['f'])
    t=t-t%8+8
    while t<m :
        print('\t',end='')
        t=t+8
    print('%s\t%s\t%s\t%s\t%s' %(ftts(o['i']),ttos(o['a']),ttos(o['c']),ttos(o['m']),size(o['s'])))