求一个数的最大公约数,一个数公约数,__author__ =
求一个数的最大公约数,一个数公约数,__author__ =
__author__ = 'JanGin_Chan'"'get the largest factor for the given non-prime number'"number = raw_input('please input a number:\n')num = int(number)factor = num / 2while factor > 1: if num % factor == 0: print '%s is the largest factor of the %s' % (factor,num) break factor -= 1else: print 'the largest factor of %s is itself' % number
相关内容
- 计算一个图形中的三角形数目,图形三角形数目,#!/us
- 通过 python 把家里路由的 IP 发邮件给自己,python家里
- 第三方Linux版的(网易云)音乐又想出新版了~,第三方
- python人脸识别,python人脸,OpenCV的人脸检测功
- python求txt文件中所有Z后面数字的最小值和最大值,,#
- python实现爬虫下载美女图片,,None
- common iter query,commoniter,def iquery(c
- python查看zip包中的文件及大小,python查看zip包中,#!/us
- 一个关于聊天机器人的调用,聊天机器人调用,#!/user/
- 使用python3.4解析xml文件(sax、dom、etree),python3.4etre
评论关闭