标识符修复中的字符无效?

2024-05-03 06:50:05 发布

您现在位置:Python中文网/ 问答频道 /正文

file = open(filename, 'r')
file.read()
new = 'first_filter_' + filename
words.save(new)
#words = text.split(' ')

错误消息:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 24: ordinal not in range(128)

Tags: textin消息newreadsave错误open