206

版权声明:根号v587版权所有 https://blog.csdn.net/hcmdghv587/article/details/82594762
count = 0
a = 5
b = 8
while count < 10:
    c = a + b
    strc = str(c)
    sum = 0
    for i in strc:
        sum += int(i)
    if c % sum == 0:
        print(c)
        count += 1
    a = b
    b = c

猜你喜欢

转载自blog.csdn.net/hcmdghv587/article/details/82594762
206