python中文注释报错

在代码的第一行加入

# -*- coding:utf-8 _*-