题解 | #牛牛数数字#
牛牛数数字
https://www.nowcoder.com/practice/79e8af6ecd184a1db3c1264c703b8e02
# list_input=input().split() # for i in list_input: # if eval(i)!=3 and eval(i)!=8: # print(i) # elif eval(i)==3: # continue # elif eval(i)==8: # break #上面是先将字符串列表转换为数字型的列表,两种方法都可以 list_input=list(map(int,input().split())) for i in list_input: if i!=3 and i!=8: print(i) elif i==3: continue elif i==8: break