摘要: #coding=utf-8from pykafka import KafkaClientimport codecsimport logginglogging.basicConfig(level = logging.INFO)client = KafkaClient(hosts = "172.16.8... 阅读全文
posted @ 2015-11-18 15:23 l_g1990 阅读(17250) 评论(1) 推荐(0) 编辑
摘要: #coding=utf-8from __future__ import unicode_literalsimport codecsimport jsonimport sysimport reimport csvimport xlsxwriterfrom datetime import datetim... 阅读全文
posted @ 2015-11-18 15:17 l_g1990 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 例如:li=[[1,2],[3,4],[5,6]]print [j for i in li for j in i]#orfrom itertools import chainprint list(chain(*li))#ora=[[1,2],[3,4],[5,6]]t=[][t.extend(i) ... 阅读全文
posted @ 2015-11-18 08:35 l_g1990 阅读(1031) 评论(0) 推荐(0) 编辑