1 import easygui as g 2 import os 3 4 def show_result(path): 5 text='' 6 total=0 7 for each_ext in ext_dict: 8 total += ext_dict[each_ext] 9 text += '[%s]源文件有[%d]个,代码[%d]行\n'% (each_ext,ext_list[each_ext],ext_dict[each_ext]) 10 11 msg = '您目前累计编写了[%d]