Python动态展现之一

首先:

def f():
print('first') def g():
f() g() def f():
print('second') g()

结果:

>>>
first
second

又来:

def g():
f() g() def f():
print('second') g()

结果:

NameError: global name 'f' is not defined

再来:

def g():
f() def f():
print('second') g()

结果:

>>>
second
上一篇:页面缓存OutputCache


下一篇:Html5shiv