1
bearzx OP 我擦这缩进。。。
|
2
bearzx OP 貌似可以用python3的nonlocal解决。。。
|
3
mengzhuo Oct 27, 2013 能用gist不……
Python的变量规则好像是是Local Closure Global Buildin 可以看看这个 http://stackoverflow.com/questions/4851463/python-closure-write-to-variable-in-parent-scope |
6
est Oct 28, 2013
a 又是变量又是函数?
|
8
VYSE Oct 28, 2013 via Android
把变量放在tuple或list里传
|
10
roricon Oct 29, 2013
为什么我先想到的是构造一个generator然后重构它的__sub__方法来实现……
|