X Tutup
Skip to content

Commit 3cf2a0a

Browse files
committed
0006 -unfinished
1 parent 36cb92f commit 3cf2a0a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Jaccorot/0006/0006.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!usr/bin/python
2+
#coding=utf-8
3+
4+
"""
5+
第 0006 题:你有一个目录,放了你一个月的日记,都是 txt,为了避免分词的问题,
6+
假设内容都是英文,请统计出你认为每篇日记最重要的词。
7+
"""
8+
9+
import os
10+
11+
12+
def walk_dir(path):
13+
for root, dirs, files in os.walk(path):
14+
for f in files:
15+
if f.lower().endswith('txt'):
16+

0 commit comments

Comments
 (0)
X Tutup