top | item 23080749 (no title) xashor | 5 years ago LABEL = sys._getframe().f_lineno print(1) j(LABEL) discuss order hn newest CivBase|5 years ago Past labels are easy, but what about future labels? print(1) goto('MYLABEL') print(2) label('MYLABEL') print(3) Or better yet... for x in range(10): for y in range(10): if x == 5 and y == 5: print(x, y) goto('MULTIBREAK') label('MULTIBREAK')
CivBase|5 years ago Past labels are easy, but what about future labels? print(1) goto('MYLABEL') print(2) label('MYLABEL') print(3) Or better yet... for x in range(10): for y in range(10): if x == 5 and y == 5: print(x, y) goto('MULTIBREAK') label('MULTIBREAK')
CivBase|5 years ago