Python 判断回文数:高效算法实现与示例
def Ishuiwen(x): num_str = str(x) return num_str == num_str[::-1]
a, b = map(int, input().split())
for i in range(a, b+1): if Ishuiwen(i): print(i)
原文地址: http://www.cveoy.top/t/topic/n7CH 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
def Ishuiwen(x): num_str = str(x) return num_str == num_str[::-1]
a, b = map(int, input().split())
for i in range(a, b+1): if Ishuiwen(i): print(i)
原文地址: http://www.cveoy.top/t/topic/n7CH 著作权归作者所有。请勿转载和采集!