from itertools import chain
v1 = [1,2,3,4]
v2 = [5,6,7,8]
for item in chain(v1,v2):
print(item)
from functools import partial
def func(a1,a2):
print(a1 + a2) # 60
new_func = partial(func,20) # 重新封装func,把20作为第一个参数传递
new_func(40)
from functools import partial
def func(a2):
print(a2) # aaaa
new_func = partial(func,'aaaaa') # 重新封装func,把20作为第一个参数传递
new_func()