pycharm 默认Tab为4个空格

1【File】→【setting】

2.【Editor】→【Code Style】→【Python】

二、pycharm空格显示

【General】→【Appearance】→ Show whitespaces

效果如下

 

 

更多推荐