Python 函数的嵌套

在调用一个函数的过程中,由调用了其他函数

def f2():
    print('from f2')

def f1():
    x=1
    # def f2()
    #     print('from f2')
    f2()

f1()
原文地址:https://www.cnblogs.com/liuxiaowei/p/7226109.html