Coding/Python Matlab

for... else... (nested loop break out)

smores 2022. 7. 26. 03:59

for i in range(10):
    for j in range(10):
        print(i,j)
        if i==5 and j==7:
            break
    else:
        continue
    break
        

'Coding > Python Matlab' 카테고리의 다른 글

matlab 2 y axes overlaid plots  (0) 2022.09.08
Matlab 과 Python 에서 multidimensional array 차이  (0) 2022.08.27
PyPDF2 PDF split, merge  (0) 2022.03.28
CP-949 한글 인코딩  (0) 2022.02.13
Matlab surface plot  (0) 2022.02.09