import random a = [random.randint(1,100) for i in range(10)]def bu(target): length = len(target) while length > 0: length -= 1 cur = 0 while cur < length: #拿到当前元素 if target[cur] < target[cur + 1]: target[cur], target[cur + 1] = target[cur + 1], t…
3.3.3 break 和 continue语句 break:跳出整个循环 continue:跳出当前循环继续后面的循环 例: x=int(input("please input the 'x':")) y=0 for y in range(0,100): if(x==y): print("the number is :",x) break else: print("The number was not found") x=0 for i in…