Python编程求出并打印水仙花数 for b in range(1,9): for s in range(0,9): for g in range(0,9): c1=100*b+10*s+g c2=b**3+s**3+g**3 if c1==c2: print(100*b+10*s+g)