摘要:
1.建表 CREATE TABLE `t_log_code_num` ( `id` int(11) NOT NULL AUTO_INCREMENT, `server_id` int(3) NOT NULL, `date` date NOT NULL, `code` varchar(20) NOT N 阅读全文
摘要:
select c.cn as '省',c.cn_city as '市', SUM(CASE t.placeId when 1 then t.num else 0 end ) as '餐饮' , SUM(CASE t.placeId when 2 then t.num else 0 end ) as 阅读全文
摘要:
#coding:utf-8#定义一个全局变量set来临时存放不重复的邮编s = set()#定义一个全局变量dic字典类型来存放处理结果,key为邮编,value为邮编出现的次数dic = {}#收集不重复的邮编def collectCode(infile): with open(infile,'r 阅读全文