听歌都能听出来代码...

#2017102
import time
start = time.process_time()
a = list(range(1000000,9999999))
a2 = [str(i) for i in a]
count =1
for i in a2:
    if i==i[::-1] and 1 <= int(i[4:6])<=12:
        print(count,'',i[:4],'',i[4:6],'',i[6:],'')
        count+=1
end = time.process_time() #计算程序运行时间
print('Running time: %s Seconds'%(end-start))
原文地址:https://www.cnblogs.com/666sss/p/11623618.html