字符串和染个函数是可迭代对象,通过for xx in 对象 再print(xx)即可依次输出可迭代对象
求水仙花数
for-in循环
原文:https://www.cnblogs.com/masterpieces/p/14930307.html