运维网's Archiver
论坛
›
Python
› Notepad++写python遇到IndentationError: unexpected indent
wtuyss
发表于 2018-8-5 14:04:40
Notepad++写python遇到IndentationError: unexpected indent
好吧我还对着网页看了半天,觉得自己不可能敲代码都敲错的。
百度了一下是tab和空格的问题。
在Notepad++中:编辑-->空白操作-->Space to Tab(all)
保存一下重新运行就可以了。
我还得去百度一下为什么我昨天刚刚装的gedit今天打不开了_(:з」∠)_
页:
[1]
查看完整版本:
Notepad++写python遇到IndentationError: unexpected indent