PyCharm: 使用汉字,提示SyntaxError: Non-ASCII character '\xe5' in file。 如: printf("你好") 原因: 解决方法: 1 在开头加 # -*- coding: utf-8 -*- 2 更多原因添加到此。