阅读量:117

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

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