python -python basis function parameters is output print statements

Function parameters print statement will execute the print statement instance when calling the function:

Outer DEF (FUNC): 
    DEF Inner (): 
        Print ( "! I am the inner function") 
    return Inner () 

DEF foo (): 
    Print ( "I am the original function!") 

Outer (foo ())

  Export

I am the original function! 
I am the inner function!

  

Guess you like

Origin www.cnblogs.com/lza945/p/11127857.html