python:实现是否为快乐数HappyNumber
def isHappyNumber(num):
rem = sum = 0;
#Calculates the sum of squares of digits
while(num > 0)
def isHappyNumber(num):
rem = sum = 0;
#Calculates the sum of squares of digits
while(num > 0)