其他分享
首页 > 其他分享> > IndentationError: unexpected indent

IndentationError: unexpected indent

作者:互联网

运行代码出现:IndentationError: unexpected indent
在这里插入图片描述

indentation是缩进,缩排的意思。unexpected indent 就是说“a”是一个“意外的”缩进。通过查看源代码找到缩进的字符位。
把这句话的缩进取消,也就是顶格写,就可以正常运行了

标签:缩进,unexpected,indent,缩排,源代码,IndentationError
来源: https://blog.csdn.net/weixin_42505757/article/details/118616404