如何突破Python中的多个循环?
while True: #snip: print out current state while True: ok = get_input("Is this ok? (y/n)") if ok.lower() == "y": break 2 #this doesn't work :( if ok.lower() == "n": break #do more processing with menus and stuff
HUX布斯
蛊毒传说
ABOUTYOU
相关分类