摘要: File "1.py", line 2SyntaxError: Non-ASCII character '\xe5' in file 1.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.h 阅读全文
posted @ 2020-07-06 09:00 CloudNativeBJ 阅读(790) 评论(0) 推荐(0) 编辑
摘要: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128) 原因: python的 str 默认是ascii编码,和unicode编码冲突。 解决方法: 代码开头加 阅读全文
posted @ 2020-07-06 08:57 CloudNativeBJ 阅读(383) 评论(0) 推荐(0) 编辑