无法将100-200中的数引入(str)中。感谢!试过很多次了,都不行。
sum=0 for i in range(100,201): if str(i)==str(i)[::-1]: sum += 1 print(sum)