Acquaintance python: callback function

Callback

Simple to understand: a function to another function of the form produced

# / User / bin the env Python! 
# Author: the Simple-Sir 
# Time: 2019/8/9 10:49 
# callback 

# through a function calls another function 

# perform functions DEF doFunc (A): A + =. 1 Print (A) # callback DEF callBack (A, FUNC): FUNC (A) # executed for I in Range (10 ): callBack (I, doFunc)

 

# Follow-up To be added ...

 

Guess you like

Origin www.cnblogs.com/simple-li/p/11325929.html