python(break和continue循环语句中的的区别)

# sooele


#####break
# for i in range(5):
#     for j in range(1,11):
#         if j%2==0:
#             break
#         print(j)
#

############continue


for i in range(5):
    for j in range(1,11):
        if j%2==0:
            continue
        print(j,end='\t')
    print()

 

发表评论