pycharm tab 显示为 → 效果图如图所示 File -> Settings -> Editor -> Code Style > Python-> Tabs and indents(可能无效) 如果无效的话 File -> Settings -> Editor -> General -> Appearance -> Show whitespaces 应该就可以了。