python functions as objects

Chapter 5

1.First-Class function

The first-class here means that a function can be used as an object and returned in another function

 

There is also the concept of first-class class in metaclass programming, that is, a class can be used as an object, created in another class, and returned

 

 

2. Function parameters

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326108515&siteId=291194637