#能被整除的数m=int(input("请输入你想判断的左区间"))n=int(input("请输入你想判断的右区间"))for i in range(m, n+1): if i % 3 == 0 and i % 7 == 0: print(i, end=' ')