goto不是python關鍵詞需要第三方庫的支援比如
from goto import with_goto
@with_goto
def func():
for i in range(2):
for j in range(2):
goto
label
return (i, j, k)