pycharm运行报如下错误:(推荐:)
解决方案:
在Python文件第一行,最前面加如下代码:
# -*- coding: utf-8 -*- # 声明字符编码 # coding:utf-8print('输出中文')
更多python知识请关注。