break和continue的区别
for a in [1,2,3,4,5,6,7,8,9]: for b in [1,2,3,4,5,6,7,8,9]: c = a*10+b if a<=b: # continue break print c 麻烦哪位大神帮我看看break 和continue为什么都是一样的结果 用break时跳出的是哪个循环?
for a in [1,2,3,4,5,6,7,8,9]: for b in [1,2,3,4,5,6,7,8,9]: c = a*10+b if a<=b: # continue break print c 麻烦哪位大神帮我看看break 和continue为什么都是一样的结果 用break时跳出的是哪个循环?
2018-03-14
举报