📜  如何在python代码示例中制作def

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

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

function1()