温馨提示×

Python如何控制函数执行顺序

九三
335
2021-03-01 10:29:57
栏目: 编程语言

Python如何控制函数执行顺序

在Python中使用del关键字控制函数的执行顺序,具体方法如下:

def foo():

print ('in the foo')

bar()

def bar():

print ('in the bar')

foo()

0