内层函数要使用外层函数定义的变量,必须使用nonlocal关键字。

内层函数要使用外层函数定义的变量,必须使用nonlocal关键字。

A.正确

B.错误

正确答案:错误

猜你喜欢