1
twm Sep 22, 2012
什么叫“批量统计字数”
|
2
mckelvin Sep 22, 2012
LZ你是说统计不同word的count吗?典型的mapreduce问题呀,需要并行计算的话可以用multiprocessing或者豆瓣开源的dpark
|
3
fanzheng Sep 22, 2012
|
4
reus Sep 22, 2012
这不学过python的都应该会的吗?这还需要什么库啊
|
5
dreampuf Sep 22, 2012
for f in os.listdir("."):
with open(f) as fhandler: print fhandler.read().count("WORD") |
6
engHacker OP 谢谢各位,我都忘记这回事了,@fanzheng 多谢!
|
7
yegle Dec 7, 2012
标准面试题。
|