python 中nonloal 关键字用来在函数或其他作用域中使用外层变量(非全局),也可使用global需要在函数外部
python 中的nonlocal
原文:https://www.cnblogs.com/jianzihao/p/14774740.html