每次登录显示这种问题
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
-bash: ulimit: open files: cannot modify limit: Operation not permitted
然后运行 python 文件 打印中文日志就会出现
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
这种该怎么设置正常呀 用 python 打印出来的系统编码是 ANSI 这种
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
-bash: ulimit: open files: cannot modify limit: Operation not permitted
然后运行 python 文件 打印中文日志就会出现
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
这种该怎么设置正常呀 用 python 打印出来的系统编码是 ANSI 这种
