python如何声明多个函数
在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
相关问答
扫码添加客服微信