一、打开Pycharm,点击file菜单点击Settings 001.png 二、点击Editor==》点击Color Scheme==》点击Python==》点Line Comment==》点击Foreground 003.png 三、点击OK,注释颜色变成自定义的颜色 004.png