Skip to content

Commit 6bad12a

Browse files
author
wangxx
committed
避免循环调用list_txt
1 parent 2657765 commit 6bad12a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AK-wang/0006/key_word.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def wc(filename):
2323

2424

2525
def most_comm():
26-
for txt in list_txt():
26+
all_txt = list_txt()
27+
for txt in all_txt:
2728
print wc(txt)
2829

2930
if __name__ == "__main__":

0 commit comments

Comments
 (0)