创建一个列表其中包含3-30能被3整除的数再使用一个for循环打印出来
num_list = [] for i in range(3, 31): if i % 3 == 0: num_list.append(i) print(num_list)
原文地址: http://www.cveoy.top/t/topic/fmg5 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
num_list = [] for i in range(3, 31): if i % 3 == 0: num_list.append(i) print(num_list)
原文地址: http://www.cveoy.top/t/topic/fmg5 著作权归作者所有。请勿转载和采集!