报错:IndentationError: expected an indented block
python有着严格的代码缩进,缩进的代码块相对于上一级是从属关系。
例子:
if xxxxxx:
(空格)xxxxx
或者
def xxxxxx:
(空格)xxxxx
还有
for xxxxxx:
(空格)xxxxx
报错:IndentationError: expected an indented block
python有着严格的代码缩进,缩进的代码块相对于上一级是从属关系。
例子:
if xxxxxx:
(空格)xxxxx
或者
def xxxxxx:
(空格)xxxxx
还有
for xxxxxx:
(空格)xxxxx