Huhujingjing commited on
Commit
3ffb5bf
·
1 Parent(s): c912b97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def process_text(file):
15
  target_path = f"{filename}.csv" # 目标路径
16
 
17
  # 读取文件内容
18
- with open(file, 'r', 'utf-8') as f:
19
  lines = f.readlines()
20
  data = []
21
  for line in lines:
 
15
  target_path = f"{filename}.csv" # 目标路径
16
 
17
  # 读取文件内容
18
+ with open(file, 'r', encoding='utf-8') as f:
19
  lines = f.readlines()
20
  data = []
21
  for line in lines: