python出现中文会报错,需要在文件头部加入以下代码声明。

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

或者

# encoding:utf-8

posted @ 2021-10-24 19:51  拉诺  阅读(86)  评论(0)    收藏  举报