函数嵌套的顺序

def func2():
    print(2)
    def func3():
        print(6)
    print(4)
    func3()
    print(8)
print(3)
func2()
print(5)

结果:

3
2
4
6
8
5
原文地址:https://www.cnblogs.com/cbbxxgc/p/12864453.html