题解 | #提前结束的循环#
提前结束的循环
https://www.nowcoder.com/practice/b957171b6e974fb0b5dd3ef653624b52
1.定义列表, 获取x
a = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79] x = int(input())
2.循环找到x
for i in a:
if i!=x:
print(i)
continue
break提前结束的循环
https://www.nowcoder.com/practice/b957171b6e974fb0b5dd3ef653624b52
1.定义列表, 获取x
a = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79] x = int(input())
2.循环找到x
for i in a:
if i!=x:
print(i)
continue
break相关推荐
iiooz:别想太多了,面试官如果看不上,就不会约面了,腾讯很少所谓的kpi,有面就说明能力肯定不错,只是每个面试官筛选方式不同,二面甚至只跟你聊生活的都有,鹅还是很开放的在筛选人这一块