首页 › 答案 › 题库 › 慕课 › 未分类

内层函数使用外层函数中定义的变量,应使用()关键字。

内层函数使用外层函数中定义的变量,应使用()关键字。
A.local
B.nonlocal
C.global
D.nonglobal
正确答案:nonlocal