python中文注释报错问题

错误信息:

  SyntaxError: Non-ASCII character 'xe4' in file...

解决办法:

  在文件第一行或第二行添加:# -*- coding: utf-8 -*-

参考:http://blog.csdn.net/chen861201/article/details/7706535

原文地址:https://www.cnblogs.com/yunsicai/p/3842927.html