我也遇到个不能理解的问题,有的py文件缩进是4、有的是8。这个tab-width为8的文件,以前用别的编辑器写的,为4的是emacs里设置了indent-tabs-mode nil、tab-width之后写的。