秒转为时分秒格式 function formatSeconds(value) { if(value == undefined) { value = 0; } var second = parseInt(value);// 秒 var min = 0;// 分 var hour = 0;// 小时 if(second > 60) { min = parseInt(second/60); second = parseInt(second%60); if(min > 60) { hour = par…
# coding=utf-8 from os import listdir if __name__ =="__main__": d=u"D:\\files\\" fns = (fn for fn in listdir(d) if fn.endswith(".csv")) for fn in fns: with open(d+fn, 'rb+') as fp: content = fp.read() try: # content.decode(&q…