打印所有的三位水仙花数

for i in range(100, 1000):
	s = star(i)
	if int(s[0])**3 + int(s[1])**3 + int(s[2])**3 ==i:
		print(i, end=" ") 

猜你喜欢

转载自blog.csdn.net/gxz987/article/details/89928509