def getsec(): dr={} for i in range(gim): dr[i]=SQLite.calc(i) dr=U.sortDictV(dr) sr='';n=0 for k,v in dr: n+=1 sr+=sechtml.format(n,getpath(k),('No.%s '%(k+1))+getdes(k),v) return sr
print e t=time()-t U.pln(t) from threading import Thread # for i in range(9999): # Thread(target=ta,args=[i]).start() # ta() import sqlite # for i in range(77): # sqlite.exe('insert into v(vid) values(1)') # sqlite.exe('65343f2') def s(adict): items = adict.items() items.sort() return [value for key, value in items] d={} for i in range(7): d[i]=i*i-5*i print d ,type(d) d=U.sortDictV(d) for k,v in d: print k # print d[0] U.x() print d ,type(d)