摘要: 1. while循环 1.1 continue contiue可以让循环体代码直接回到条件判断处重新判断,相当于跳出本次循环 eg: # 使用while循环打印0-10但是不打印4 num = 0 while num < 11: if num == 4: num += 1 # 跳出的时候将num加1 阅读全文
posted @ 2021-11-05 18:27 klcc-cc 阅读(353) 评论(0) 推荐(0)