Browse Source

仅通过标题tag 分析全部数据

罗俊辉 1 năm trước cách đây
mục cha
commit
d4ba68a23c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      result_analysis.py

+ 1 - 1
result_analysis.py

@@ -37,7 +37,7 @@ if __name__ == '__main__':
     for file in files:
         if file.endswith(".txt"):
             fp = os.path.join(path, file)
-            with open(path, encoding="utf-8") as f2:
+            with open(fp, encoding="utf-8") as f2:
                 data2 = f2.readlines()
             analysis(data2)