被引入模块和主模块都是cp936编码的,换成utf-8也不行,有大大知道怎么解决吗?
1
shyrock OP 补充:网页检查代码中有中文。如果换成utf-8,报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 0: ordinal not in range(128)
|
2
shyrock OP 问题关闭,是我愚蠢的忘了在字符串前加u。。。
|