1
undertonememorie 2018-06-07 10:01:55 +08:00
var001 = ‘’
var002 = ‘’ var003 = ‘’ |
2
undertonememorie 2018-06-07 10:02:23 +08:00
var001 = ‘’
var002 = ‘’ var003 = ‘’ try: var001 = func001(args) |
3
vicalloy 2018-06-07 10:06:50 +08:00
应当就一个 for 循环的事吧
for v in [1, 2, 3, 4, 5]: ....pass |
4
newbieo0O 2018-06-07 10:08:17 +08:00
跑一遍 fun 后解构赋值?
|
5
clino 2018-06-07 10:09:54 +08:00 via Android
弄个函数数组,来一个 for 循环,结果也 append 到一个数组里
|
6
vicalloy 2018-06-07 10:10:37 +08:00
抱歉,看错了,应当函数不同。
def ignore_exception(func, *args, **kwargs): ....func(*args, **kwargs) for f in [func1, func2, func2]: ....ignore_exception(f, arg1) |
7
MicroCatPad 2018-06-07 10:11:02 +08:00
可以用装饰器
|
8
CosimoZi 2018-06-07 10:14:05 +08:00
反射了解一下
|