Python跳出多重循環的方法

方法1:自定義異常python # -*- coding:utf-8 -*- """ 功能:python跳出循環 """ # 方法1:自定義異常 class Getoutofloop(Exception): pass try: for i in range(5): for j in range(5): if i == j == 2:
相關文章
相關標籤/搜索