如图,在windows10环境下运行,控制台输出中文乱码; 解决方案: 菜单 -> File -> Settings -> Editor -> File Encodings: 在控制台右下角将utf-8转换为GBK rebuild project,运行 解决。