pythonchallenge闯关 第15题

15、Hint:(1)whom?

     (2)screen15.jpg

     (3)<!-- he ain't the youngest, he is the second --> 他不是最年轻的,是第二年轻的

     (4)<!-- todo: buy flowers for tomorrow -->明天买些花

今天是1.26 明天是1.27 星期二 

1xx6年

2月有29天是闰年

找出生日日期

import re
from datetime import *

def isLeapYear(year):
    if year % 4 == 0 and year % 100 != 0:
        return True
    if year % 400 == 0:
        return True
    else:
        return False

LeapYear = []

for i in range(1000, 2000):
    if isLeapYear(i) and re.match(r'1[0-9]{2}6', str(i)) and date(i, 1, 27).weekday() == 1:
        LeapYear.append(i)

print LeapYear[-2]
(15)

生日日期是:1756.1.27

以为Url是:http://www.pythonchallenge.com/pc/return/1756.html

结果还我一个404....

查了一下1756.1.27是谁的生日

答案:奥地利音乐大师莫扎特

url:http://www.pythonchallenge.com/pc/return/mozart.html

posted @ 2017-10-17 16:53  anixtt  阅读(111)  评论(0编辑  收藏  举报