def zwx_post100(ulst,rsk,uid,df9_hdr): flst=zt.lst4dir(rsk);#flst=flst[:5]#zt.lstPr(flst) flst=zt.lst_keyFltStr(flst,'zz_') fn9,nusr=len(flst),len(ulst['nam'])-1 ns9='/'+str(fn9);print('fn9,',fn9) # #flst=flst[:1];#print(flst) for i, fn0 in enumerate(flst): print(i,ns9,'#',rsk,fn0) xc=random.randint(0,nusr);#xc=10 unam,upas=ulst.nam[xc],ulst.pas[xc] # zwx_post010(fn0,rsk,uid,unam,upas,df9_hdr)
def fb_xdat_xlnk(rs0,ftg): flst=zt.lst4dir(rs0) df9=pd.DataFrame(columns=tfsys.gxdatSgn,dtype=str) for xc,fs0 in enumerate(flst): fss=rs0+fs0 print(xc,fss) df=pd.read_csv(fss,index_col=False,dtype=str,encoding='gb18030') # df2=df[df['kwin']!='-1'] df9=df9.append(df2,ignore_index=True) # if (xc % 2000)==0: #df9.to_csv(ftg,index=False,encoding='gb18030') fs2='tmp/x_'+str(xc)+'.dat';print(fs2,fss) df9.to_csv(fs2,index=False,encoding='gb18030') # df9.to_csv(ftg,index=False,encoding='gb18030')