【編輯器使用】
在VSCode下編寫python程序,使用pylint輔助修正代碼規范,出現無限報錯:
file: 'file:///c%3A/Users/dell/Desktop/Java/ex2/FactorialSum.py'
severity: '警告'
message: 'W0312:Found indentation with tabs instead of spaces'
at: '9,1'
source: 'pylint'
大體意思是應該使用spaces來縮進,而不是tabs。
解決方法:
VSCode和Sublime Text3中都有對於縮進的設置
vscode設置:


sublime text3設置:


將相應的縮進修改為spaces即可。
