cnt=0
for i in range(1000,
n1=i//1000 #求千位
n2=i//100%10 #求百位
n3=
n4=i%10 #求个位
if n1**4+n2**4+n3**4+n4**4==i:
print(i,'为玫瑰花数')
print('玫瑰花数共',cnt,‘个')
请回答下列问题:
(1)四位数1634
(2)请在Python程序段划线处填入合适的代码。

同类型试题

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2


y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

