初学Python,用文本文档编写了一个demo.py,另存为utf-8,运行出错:
SyntaxError: Non-ASCII character '\xff' in file demo.py on line 1
添加#coding=utf-8,运行成功。
初学Python,用文本文档编写了一个demo.py,另存为utf-8,运行出错:
SyntaxError: Non-ASCII character '\xff' in file demo.py on line 1
添加#coding=utf-8,运行成功。