pycharm 控制台输出部分中文乱码

file->settings->Build,Execution,Deployment->Console->Python Console

import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS])

  修改为

import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS])
!chcp 65001

  

posted @ 2020-09-13 17:01  旁光  阅读(445)  评论(0编辑  收藏  举报