在python中使用del关键字声明多个函数,具体方法如下:
def f():global xx = 2print xx +=2 def g():global xprint xx += 3f()g()print x
def f():
global x
x = 2
print x
x +=2
def g():
x += 3
f()
g()