如题所述
num = list(map(int, input('请输入一些数:').split()))for i in num:if i%3==0 or i%10==3:print(i, end=' ')