IndentationError: unexpected indent

来源:互联网 发布:西安软件科技学院校长 编辑:程序博客网 时间:2024/05/29 16:14

 

编译时出现,

img = cv2.imread('star.jpg',0)

    ^

IndentationError: unexpected indent

意外缩进  

原因   img = cv2.imread('star.jpg',0)   中 img前面有个空格 即: