def ArmstrongCalculate(num):
numlist = str(num)
sum = 0
for i in numlist:
sum += int(i) ** len(numlist)
return sum
ranges = input()
ranges.split()
lower = int(ranges[0])
upper = int(ranges[1])
count = 0
for i in range(lower, upper + 1):
if ArmstrongCalculate(i) == i:
count += 1
print(i)
if count == 0:
print("none")
這寫法 ...???