Callback functions-python and callback-python
Link: http://www.zhihu.com/question/19801131/answer/27459821
Source: zhihu
Copyright belongs to the author. For commercial reprint, please contact the author for authorization. For non-commercial reprint, please indicate the source.
There are two types of programming: system programming and application programming ). The so-called system programming, in short, is to writeLibraryApplication Programming uses various libraries to write programs with a certain function, that isApplication. System programmers leave some interfaces for their own libraries, that is, application programming interfaces (APIS), to be used by programmers. Therefore, in the illustration of the abstraction layer, the Library is located under the application.
When the program starts running, generally, the application (application program) will call the pre-prepared functions in the library through the API. However, some library functions require the application to pass them to a function first, so that they can be called at an appropriate time to complete the target task. This passed-in and called function is calledCallback Function(Callback function ).
Link: https://www.zhihu.com/question/19801131/answer/27459821
Source: zhihu
Copyright belongs to the author. For commercial reprint, please contact the author for authorization. For non-commercial reprint, please indicate the source.