参考PEP8,Spaces are the preferred indentation method.
Tabs should be used solely to remain consistent with code that is already indented with tabs.
Python 3 disallows mixing the use of tabs and spaces for indentation.
Python 2 code indented with a mixture of tabs and spaces should be converted to using spaces exclusively.
When invoking the Python 2 command line interpreter with the -t option, it issues warnings about code that illegally mixes tabs and spaces. When using -tt these warnings become errors. These options are highly recommended!
大概就是说,最好用空格。
源码用了tab,为了保持缩进一致再用tab。
Python3 不可混用,2可以混用。
但是PEP8参考一下就好了,tab在许多IDE是可以转为空格的。PEP 8 -- Style Guide for Python Codewww.python.org