python啊
查看原帖
python啊
667822
nongshaozhong楼主2022/1/19 14:21

x = int(input('输入任意一个整数:')) L = [3, 5, 7] for i in L: if x % int(i) == 0: print(i, end=' ') if x % 3 != 0 and x % 5 != 0 and x % 7 != 0: print('n')

这样为啥不可以

2022/1/19 14:21
加载中...