Python使用4个空格替换Tab, TabError: inconsistent use of tabs and spaces in indentation。

问题:以前使用Pycharm和VsCode没遇到问题,使用nodepat++老是提示Tab异常  TabError: inconsistent use of tabs and spaces in indentation。

查看:视图-显示符号-显示所有字符

解决办法

1.删除Tab符号,使用空格替代

2.设置-首选项-语言,替换为空格

猜你喜欢

转载自www.cnblogs.com/bincoding/p/8911875.html
今日推荐