tag 标签: Files经管大学堂:名校名师名课

相关帖子

版块 作者 回复/查看 最后发表
carbon capture files attachment 环境经济学 041301 2010-2-17 1 1514 三重虫 2021-7-24 19:37:41
Recover+My+Files万能数据恢复软件破解版 attachment 爱问频道 wangzhengily521 2010-4-26 13 5712 nivel 2020-2-29 23:30:54
Robust and Adaptive Control With Aerospace Applications attach_img 运营管理(物流与供应链管理) Toyotomi 2013-4-2 10 6578 小南京 2016-1-15 12:51:38
有关sas输出的两个初级问题 SAS专版 ssxxtt27 2013-8-4 3 2471 sunshine_state 2014-7-1 04:55:49
Download for CML module for Gauss SRC files attachment Gauss专版 fatboy 2005-5-16 22 14613 xuehe 2013-12-12 16:23:27
悬赏 Insiderownership and corporate value - [悬赏 1 个论坛币] attachment 文献求助专区 aluminium 2013-6-13 1 1167 xllbl 2013-6-13 13:25:37
咨询工具、方法论、模型系列 28 Files attachment 金融学(理论版) huanghs 2006-11-14 2 1662 KAIXIN112_SS 2012-11-22 12:07:34
files about MLE and GLM attachment R语言论坛 urdaddy 2007-11-6 10 5610 just31415 2011-12-29 15:24:40
Good PDF Files for R Beginners attachment R语言论坛 qli 2007-9-13 5 3866 howesun 2011-12-18 17:13:30
[下载]Schwesers Pro 2006 - Latest - Doc Files - Special attachment CFA、CVA、FRM等金融考证论坛 gguripark 2007-2-27 1 1818 abpc1998 2011-11-11 19:24:34
Schwesers Pro 2006 - Latest - Doc Files - Special I attachment 金融学(理论版) donau 2006-11-3 0 1907 donau 2011-10-29 02:16:46
[下载] JunWei 2005 L-1 notes (17 Files, 8M) attachment 金融学(理论版) donzhang 2005-12-20 0 1459 donzhang 2011-10-12 00:49:23
cfa code&standard revised 2006 pdf files attachment CFA、CVA、FRM等金融考证论坛 leosway 2005-11-14 2 3302 pooren 2011-10-11 09:52:01
计量经济模型与经济预测(英文版.第4版)data files attachment 计量经济学与统计软件 donghai 2005-5-1 29 7403 kuerry 2011-10-3 22:02:24
怎么在 SAS, Stata and SPSS files之间进行转换? Stata专版 cjxiong 2009-2-27 4 6611 peyzf 2011-6-13 12:33:45
[转帖]GAUSS 9.0 Documentation in PDF Files Gauss专版 pertain 2009-4-20 2 3715 robinsonyr 2010-2-1 18:59:18
[下载] 最新投行研究报告合集(15 files) attachment 金融学(理论版) scobra 2009-4-8 2 1434 zengkun 2009-4-8 22:41:00
The Beta version 6 can not read Release Version files EViews专版 abccba2002 2008-12-27 2 2459 abccba2002 2008-12-27 21:21:00
[分享]SAS Publishing Moving and Accessing SAS 9.2 Files attachment 数据分析与数据科学 mathlabpass 2008-10-22 0 1623 mathlabpass 2008-10-22 21:15:00
some FRM powerpoint files attachment CFA、CVA、FRM等金融考证论坛 murwhin 2008-4-14 17 4095 murwhin 2008-4-17 20:23:00

相关日志

分享 p2_对某个文件夹中的文件统一处理
xulimei1986 2016-4-1 15:35
import os path =r'E:\CRM\phone\call' path2= r'E:\CRM\phone\result' for root,dirs,files in os.walk(path): for fn in files: #print fn name=fn.split('.') wroute1 = r'%s'%path+'\\'+fn wroute2 = r'%s'%path2+'\\'+name+'jieguo.txt' file1 = open(wroute1,'r') file2 = open(wroute2,'w+') for k in file1.readlines(): if 'com' in k : list1 = k.strip().split('\t') urs = list1 #print urs call_1 = list1 if call_1.find("打DM电话")!=-1: file2.write('%s\t%s\n'%(urs,call_1)) file2.close() ''' name_list = for name in name_list: wroute1 = r'E:\CRM\phone\call\%s.txt'%name wroute2 = r'E:\CRM\phone\call\%s'%name+'jieguo.txt' #print wroute1,wroute2 file1 = open(wroute1,'r') file2 = open(wroute2,'w+') for k in file1.readlines(): if 'com' in k : list1 = k.strip().split('\t') urs = list1 #print urs call_1 = list1 if call_1.find("打DM电话")!=-1: file2.write('%s\t%s\n'%(urs,call_1)) file2.close() '''
0 个评论
分享 春节啦啦啦~~~
xulimei1986 2014-1-24 11:15
/*文件合并工具*/ # -*- coding: cp936 -*- import glob files=glob.glob('*_*')#这个改文件格式 w=open('comb.txt','w')#这个改输出结果 #w.write('推广员编号,姓名,申请ip,地址,玩家id,服务器id,昵称,等级,激活ip,地址,激活时间,消费\n') for wenjian in files: f=open(wenjian) for i in f: #if '推广员编号' in i: #continue w.write('%s%s'%(wenjian,i)) f.close() w.close() /**********取文件中首个字符为日期时间型的数据******/ #coding:gb2312 import time filename="system_ogoss.log_20131126.log" def is_valid_date(str): try: time.strptime(str, "%Y-%m-%d %X") return True except: return False f=open(filename) r=open(filename+"_.result", "w") for s in f: if not s.strip():continue if is_valid_date(s ): r.write(s) r.close() raw_input("Done") /*******取某个字段后面的数据************/ #coding:gb2312 file_name="lj.instance.2013-12-31.log" span="log=" r=open(file_name+"_result.txt", "w") f=open(file_name) for s in f: if not s.strip():continue r.write(s.split(span) ) r.close() /**********去掉非日期格式的数据行**********/ #coding:gb2312 import time,re regx=re.compile(r'\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}') filename="2013-11-10-chat.log" f=open(filename, "rb").read().replace("\r","").split("\n") r=open(filename+"_.result", "w") for s in f: if not s.strip():continue if regx.search(s ): r.write(s+"\n") r.close() raw_input("Done") /************匹配字段的脚本**********/ # -*- coding: cp936 -*- import glob,gzip,sys,datetime,time ty=sys.getfilesystemencoding() s={} logs=glob.glob('*.log') for z in logs: print z for r in open(z): try: sr=r.decode('utf-8').encode(ty).split(',',15) except: sr=r.split(',',15) fn=sr .split(':') .strip(),sr .split(':') .strip() if "@" not in sr : urs=sr .split(':') .strip()+"@163.com" else: urs=sr .split(':') .strip() if s.has_key(fn)==False: s =urs w=open('再流失样本流通记录(加帐号).txt','w+') for ii in open('11.1-11.30道具消费.txt'): #for ii in open(i0): try: i=ii.decode('utf-8').encode(ty) except: i=ii si=i.split(',') if len(si)==23: fwq=si .strip() yjs=si .strip() fy=fwq,yjs mjs=si .strip() fm=fwq,mjs yurs='未匹配' murs='未匹配' if s.has_key(fy): yurs=s if s.has_key(fm): murs=s w.write('%s,%s,%s\n'%(yurs,murs,i.strip())) w.close() /**********自动下载数据的脚本**********/ #---coding:cp936---# import urllib,urllib2,cookielib,socket,time,os,re,datetime,random,sys,base64 import module if '__main__'==__name__: self_module=module.self_module date='2014-01-23' log_out_reqh=self_module().down_out(date) out_lines=urllib2.urlopen(log_out_reqh) w=open('%s_out.log'%date,'w') for line in out_lines: w.write(line.strip()+'\n') w.close() log_in_reqh=self_module().down_in(date) in_lines=urllib2.urlopen(log_in_reqh) w=open('%s_in.log'%date,'w') for line in in_lines: w.write(line.strip()+'\n') w.close()
0 个评论

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-24 00:25