题解 | #跳过列表的某个元素#
跳过列表的某个元素
https://www.nowcoder.com/practice/4713c1513cfa43b5a3dd0013059880fe
import sys
a=[]
for i in range(0,15):
a.append(i+1)
for j in a:
if j == 13:
continue
else:
print(j,end=' ')
跳过列表的某个元素
https://www.nowcoder.com/practice/4713c1513cfa43b5a3dd0013059880fe
import sys
a=[]
for i in range(0,15):
a.append(i+1)
for j in a:
if j == 13:
continue
else:
print(j,end=' ')
相关推荐