python报错:IndentationError: expected an indented block 在使用for in语句中出现报错IndentationError: expected an indented block IndentationError: expected an indented block的意思是 缩进错误: 期望一个缩进的块 且错误的地方是出在第二行的print(i) 解决这个bug就是要在错误的逻辑代码的前方加空格