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