Python 打印中文字符

转自:https://www.zhihu.com/question/24559207

可以使用unicode函数

print (unicode("请输入销售额", encoding="utf-8"))

将utf-8编码转换为unicode就可以输出中文了。

猜你喜欢

转载自blog.csdn.net/auccy/article/details/111842061
今日推荐