我有一个文本行,如下所示:
· History of Student id (A129.02)
· History of Professor id (FG123.24)
当我阅读这些行时,它会在每行前面添加Â,如下所示:
· History of Student id (A129.02)
· History of Professor id (FG123.24)
我正在使用以下代码:
import os
data_location="D:\Data"
for root, dirs, files in os.walk(data_location)
for filename in files:
with open(os.path.join(root, filename), encoding="utf8",mode="r") as f:
for line in f:
print(line)
我不明白为什么要在每行前面都添加这个。