|
|
@ -29,6 +29,7 @@ def process_chunk(shared_chunks,word_count):
|
|
|
|
print(e)
|
|
|
|
print(e)
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@timing_decorator
|
|
|
|
@timing_decorator
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
# 创建一个Manager实例
|
|
|
|
# 创建一个Manager实例
|
|
|
@ -56,5 +57,6 @@ def main():
|
|
|
|
word_freqs = Counter(word_count).most_common(10)
|
|
|
|
word_freqs = Counter(word_count).most_common(10)
|
|
|
|
print_word_freqs(word_freqs)
|
|
|
|
print_word_freqs(word_freqs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|
|
|
|
main()
|