dev
zj3D 8 months ago
parent 5099345721
commit 2d46194636

@ -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()
Loading…
Cancel
Save