IndentationError:expected an indented block

python的格式真是个磨人的小妖精

今日在cmd下敲时一直出现这个“

IndentationError:expected an indented block

”错误,后来一搜索才知道原来冒号后的下一行是要缩进的,所以还是乖乖地用sublime text3来写吧

转载于:https://www.cnblogs.com/Guhongying/p/9610355.html

你可能感兴趣的:(IndentationError:expected an indented block)