📜  python代码示例中嵌套函数的用途

📅  最后修改于: 2022-03-11 14:45:52.492000             🧑  作者: Mango

代码示例1
def function1(): # outer function
    print ("Hello from outer function")
    def function2(): # inner function
        print ("Hello from inner function")
    function2()

function1()