sum1 =int(input())for i in range(10000,1000000):
tmp =str(i)if tmp[0]==tmp[-1] and tmp[1]== tmp[-2] and tmp[2]==tmp[-3]:
yuansu=[]for j in tmp:
tmp1 =int(j)
yuansu.append(tmp1)
single_sum =sum(yuansu)if single_sum == sum1:print(i)
问题描述代码sum1 = int(input())for i in range(10000,1000000): tmp = str(i) if tmp[0]==tmp[-1] and tmp[1]== tmp[-2] and tmp[2]==tmp[-3]: yuansu= [] for j in tmp: tmp1 ...