首页 > 代码库 > 9-16
9-16
http://www.oschina.net/question/12_44528
http://forum.ubuntu.org.cn/viewtopic.php?f=86&t=367125
http://blog.chinaunix.net/uid-23960482-id-111808.html
http://www.ruanyifeng.com/blog/2013/08/linux_boot_process.html
#!/usr/bin/pythonfor num in range(10,20): #to iterate between 10 to 20 for i in range(2,num): #to iterate on the factors of the number if num%i == 0: #to determine the first factor j=num/i #to calculate the second factor print ‘%d equals %d * %d‘ % (num,i,j) break #to move to the next number, the #first FOR else: # else part of the loop print num, ‘is a prime number‘
9-16
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。