摘要: Compare this, without using nonlocal: x = 0def outer(): x = 1 def inner(): x = 2 print("inner:", x) inner() print("outer:", x) outer()print("global:", 阅读全文
posted @ 2019-08-07 10:58 zxpo 阅读(262) 评论(0) 推荐(0) 编辑