2016-01-21 79 views

回答

2

身份功能可以簡單地定義爲:

identity = lambda x: x 

我不知道任何模塊中定義的這個功能,但它可能是一個非常適合functools

+1

你們認爲可以開一個* PEP *嗎? –