python_60_装饰器3
#嵌套函数
def foo():
print('in the foo')
def bar():
print('in the bar')
bar()
#bar()#出错,无法在外边调用,bar函数的作用范围只在foo函数之内
foo()
#嵌套函数
def foo():
print('in the foo')
def bar():
print('in the bar')
bar()
#bar()#出错,无法在外边调用,bar函数的作用范围只在foo函数之内
foo()