def listc(i):
s=str(i)
if s==s[::-1]:
return i
c=filter(listc,range(1001))
for n in range(1001):
print(next(c))
Sign in to make a reply
而今迈步从头越
def listc(i):
s=str(i)
if s==s[::-1]:
return i
c=filter(listc,range(1001))
for n in range(1001):
print(next(c))