Python图形化界面编码错误解决方案

81 阅读1分钟

错误:SyntaxError: Non-UTF-8 code starting with ‘\xcb’ in file E:/Python/test.py on line 2

解决方法:在首行加上


# coding=gbk