在打开文件:
fhandle = open('./song_comments1.txt', 'a')
更改为:
fhandle = open('./song_comments1.txt', 'a',encoding='utf-8')
设置以utf-8打开文件。
在打开文件:
fhandle = open('./song_comments1.txt', 'a')
更改为:
fhandle = open('./song_comments1.txt', 'a',encoding='utf-8')
设置以utf-8打开文件。