摘要: 1.关键字 global nonlocal 为什么不能直接在局部对全局的变量进行修改? 因为UnboundLocalError: local variable 'count' referenced before assignment, 解释器认为:如果你在局部作用域对一个变量进行修改了,你在局部作用 阅读全文
posted @ 2019-06-19 18:07 口吐芬芳 阅读(117) 评论(0) 推荐(0) 编辑