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

Both comments and pings are currently closed.

Comments are closed.

Powered by KingAbc | 粤ICP备16106647号-2 | Loading Time‌ 0.259