【发布时间】:2018-04-09 17:36:27
【问题描述】:
我在 Python 中有一个函数
def outer_function():
def inner_funtion():
print ('inner message')
print('outer message')
sys.exit()
如何调用内部函数?我对检查库很陌生,如果这符合关闭条件,我会关闭。
【问题讨论】:
-
您调用它的方式与调用任何其他函数的方式相同...
inner_funtion().
标签: python python-3.x closures nested-function