让sublime text显示空格,到底是点还是横杠TabError: inconsistent use of tabs and spaces in indentation
报错情况:TabError: inconsistent use of tabs and spaces in indentation
分析,因为前面点部分从网上复制的,后面横杠是自己写的,这种混合写法会报错。
方案
在sublime text中Preferences->Settings-User中添加以下代码:
,
"draw_white_space": "all"
添加后的效果:
保存,重启ST,搞定
注意不同的项目之间用逗号分开。
认识你是我们的缘分,同学,等等,学习人工智能,记得关注我。
微信扫一扫
关注该公众号
《湾区人工智能》