题解 | #提前结束的循环#
提前结束的循环
https://www.nowcoder.com/practice/b957171b6e974fb0b5dd3ef653624b52
据说有人看不懂这段代码
l = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79] n = int(input()) for i in l: if i-n: print(i) else: break
提前结束的循环
https://www.nowcoder.com/practice/b957171b6e974fb0b5dd3ef653624b52
l = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79] n = int(input()) for i in l: if i-n: print(i) else: break
相关推荐