标签:
#!/usr/bin/python # -*- coding: UTF-8 -*- from sys import stdout n = int(raw_input("input number:\n")) print "n = %d" % n for i in range(2,n + 1): while n != i: if n % i == 0: stdout.write(str(i)) stdout.write("*") n = n / i else: break print "%d" % n
标签:
原文地址:http://www.cnblogs.com/kuihua/p/5531817.html