python错误:SyntaxError: Non-ASCII character ‘\xe6’

主要原因是加入了中文注释,需要在文件第一行加入:

#encoding: utf-8

Leave a Reply

Your email address will not be published. Required fields are marked *