Bootstrap

Python初学者:元组数据操作,输出元组内7的倍数以及个位是7的数

输入以空格间隔(好看)

x=map(int,input().split())  #split可以提供空格
x=tuple(x)    #列表转元组
for i in x :
   if i % 7 == 0 or i %  10 == 7 :
    print(i)

;