解决方法: pycharm 打开cfg文件配置高亮方法: setting->editor->file types, 在recognized file types,中找到ini,下面框添加*.cfg即可。 效果图: 相关文章: 2021-11-05 2021-06-08 2021-07-16 2022-12-23 2021-12-10 2021-08-10 2021-09-03 2021-09-11