清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
__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 / 2 while factor > 1: if num % factor == 0: print '%s is the largest factor of the %s' % (factor,num) break factor -= 1 else: print 'the largest factor of %s is itself' % number