print()打印中文报错UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128),解决办法:执行时对PYTHONIOENCODING进行定义utf-8,示例 PYTHONIOENCODING=utf-8 python helloword.py