1.问题:Python文件运行时报错
TabError: inconsistent use of tabs and spaces in indentation**
原因:说明Python文件中混有Tab和Space用作格式缩进。这通常是使用外部编辑器编辑Python文件时,自动采用Tab进行格式缩进。
解决方案:将Tab转换成4个Space
AttributeError: module 'cv2' has no attribute 'cv'**
解决方法:https://blog.youkuaiyun.com/oYeZhou/article/details/82465742
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xc4 in positio
解决方案: 开头加上 #--coding:utf-8 --,即