得到一个数的所有除数的最佳方法是什么?这是非常愚蠢的方式: def divisorGenerator(n): for i in xrange(1,n/2+1): if n%i == 0: yield i y ...2024-05-16 已阅读: n次