PyCharm - 格式化代码 (Reformat Code) 1. Ctrl + A全选代码。2. Code -> Reformat Code格式化快捷键 Ctrl + Alt + L,但是和锁屏快捷键冲突,不宜使用。 相关文章: