一个函数
时间:2017-10-23 23:30:59
收藏:0
阅读:249
def persistence(n,countSum=0):
num = 1
if len(str(n)) !=1:
for i in str(n):
num = num * int(i)
countSum += 1
return persistence(num,countSum=countSum)
else:
return countSum
原文:http://www.cnblogs.com/dreamyu/p/7602432.html
评论(0)