偏导函数

一、偏导函数

from functools import partial


def test(a, b, c, d):
    return a + b + c + d

# 事先进行占位,重新产生了一个新的函数地址,可以直接加括号直接运行
tes = partial(test, a=1, b=2)

print(tes(c=3, d=4))
原文地址:https://www.cnblogs.com/randysun/p/15518212.html