コード例 #1
0
ファイル: tz2txt.py プロジェクト: zhufeng/tz2txt
def statistic(infile):
    size = os.path.getsize(infile)
    print('编排文件{0},共{1}字节\n'.format(infile, format(size,',')))
          
    lst = datamachine.bp_to_internal2(infile)
    datamachine.print_bp_head(lst)
    datamachine.statistic(lst)
コード例 #2
0
ファイル: tz2txt.py プロジェクト: enet-jade/tz2txt
def statistic(infile, automode=False):
    if not automode:
        size = os.path.getsize(infile)
        print('编排文件{0},共{1}字节\n'.format(infile, format(size,',')))
        infile = read_input(infile)
        if infile == None:
            return
          
    lst = datamachine.bp_to_internal2(infile)
    
    datamachine.print_bp_head(lst)
    datamachine.statistic(lst)
コード例 #3
0
ファイル: tz2txt.py プロジェクト: ixinshang/tz2txt
def statistic(infile, automode=False):
    if not automode:
        size = os.path.getsize(infile)
        print('编排文件{0},共{1}字节\n'.format(infile, format(size,',')))
        infile = read_input(infile)
        if infile == None:
            return
          
    lst = datamachine.bp_to_internal2(infile)
    
    datamachine.print_bp_head(lst)
    datamachine.statistic(lst)