摘要:
apache的thrift在1.0.0的开发版本之前的python多文件是无法实现的, 在1.0.0上面才有多文件代码。下载thrift1.0.0的源码,把里面的其中一些文件拷贝 /thtift/lib/py/src/TMultiplexedProcessor.py /thtift/lib/py/s... 阅读全文
posted @ 2014-06-15 14:53
Channel.Q
阅读(321)
评论(0)
推荐(0)
摘要:
可以用python的自带的迭代函数itertools下面的groupby函数from itertools import groupby((len(list(group)),name) for name ,group in groupby(data)) 阅读全文
posted @ 2014-06-15 14:50
Channel.Q
阅读(794)
评论(0)
推荐(0)
浙公网安备 33010602011771号