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

 

 

 

#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))

 

posted @ 2019-10-04 23:01  Yuki-Yang  阅读(155)  评论(0编辑  收藏  举报