报错处理…记录
1、注意缩进问题!
IndentationError:expected an indented block说明此处需要缩进,你只要在出现错误的那一行,按空格或Tab(但不能混用)键缩进就行。
有冒号的下一行往往要缩进,该缩进就缩进。
函数
map()
map(function, iterable)
- function -- 函数
- iterable -- 一个或多个序列
IndentationError:expected an indented block说明此处需要缩进,你只要在出现错误的那一行,按空格或Tab(但不能混用)键缩进就行。
有冒号的下一行往往要缩进,该缩进就缩进。
map(function, iterable)