在Python中使用del關鍵字控制函數的執行順序,具體方法如下:
def foo():print ('in the foo')bar()def bar():print ('in the bar')foo()
def foo():
print ('in the foo')
bar()
def bar():
print ('in the bar')
foo()