网络知识 娱乐 python报"IndentationError:unexpectedindent"的解决方法 python报"IndentationError:unexpectedindent"的解决方法 发布: 2023年2月14日 10:17:50 python是一种对缩进非常敏感的语言,最常见的情况是tab和空格的混用会导致错误,或者缩进不对,而这是用肉眼无法分别的。将def 前面的空格去掉,然后对print做下tab空格,问题就解决了