pip install goto-statement
@with_goto
def range(start, stop):
i = start
result = []
label .begin
if i == stop:
goto .end
result.append(i)
i += 1
goto .begin
label .end
return result
range(1,4)
w1 = True
w2 = True
w3 = True
while w1:
print("第1层循环")
while w2:
print("第2层循环")
while w3:
print("第3层循环")
w3 = False
w2 = False