帮我解决下错误
帮我解决下 文本形式贴源码出来 import jiebaf = "红楼梦.txt"
sf = "停用词.txt"
print(f,sf)
fi = open(f,"r")
fo = open(sf,"r")
fi.read()
fo.read()
print(fi)
print(fo) 本帖最后由 Daniel_Zhang 于 2021-3-24 22:16 编辑
fi = open(f,'r', encoding='utf-8')
fo = open(sf,'r', encoding='utf-8')
file open 那两行加上 encoding 就可以了
页:
[1]