python挑战之level 15
2016-09-23 10:21
267 查看
连接为:http://www.pythonchallenge.com/pc/return/uzi.html
登陆账号密码:(huge,file)
——————————————————————————————————————————————————
图片为一张日历,在26号上面画圈,这是1--6年的1月,放大图片,可以看到右下角是二月有29天。这是一个闰年
源代码提示:<!-- he ain't the youngest, he is the second -->
<!-- todo: buy flowers for tomorrow -->说明在1006——1996之间所有的闰年,并且不是最年轻的,是第二年轻。然后再1.27这天有大事发生
——————————————————————————————————————————————————————————
计算闰年:
import datetime, calendar
for year in range(1006,1997,10):
t = datetime.date(year, 1, 27)
if calendar.isleap(year) and t.isoweekday()==2:#TUESDAY=2
print(t)
————————————————————————————————————————
这个年份为1**6年:只有一下几个结果:
结果为:
1176
1356
1576
1756
1976
那么取倒数第二个年份,搜一下1756-1-27,就知道这一天莫扎特诞生。
所以谜底应该就是mozart
下一关:http://www.pythonchallenge.com/pc/return/mozart.html
登陆账号密码:(huge,file)
——————————————————————————————————————————————————
图片为一张日历,在26号上面画圈,这是1--6年的1月,放大图片,可以看到右下角是二月有29天。这是一个闰年
源代码提示:<!-- he ain't the youngest, he is the second -->
<!-- todo: buy flowers for tomorrow -->说明在1006——1996之间所有的闰年,并且不是最年轻的,是第二年轻。然后再1.27这天有大事发生
——————————————————————————————————————————————————————————
计算闰年:
import datetime, calendar
for year in range(1006,1997,10):
t = datetime.date(year, 1, 27)
if calendar.isleap(year) and t.isoweekday()==2:#TUESDAY=2
print(t)
————————————————————————————————————————
这个年份为1**6年:只有一下几个结果:
结果为:
1176
1356
1576
1756
1976
那么取倒数第二个年份,搜一下1756-1-27,就知道这一天莫扎特诞生。
所以谜底应该就是mozart
下一关:http://www.pythonchallenge.com/pc/return/mozart.html
相关文章推荐
- python挑战之level 12
- python挑战之level 16
- Python挑战游戏( PythonChallenge)闯关之路Level 0
- Python挑战游戏( PythonChallenge)闯关之路Level- 5
- Python挑战游戏( PythonChallenge)闯关之路Level- 4
- python挑战之level 10
- python挑战之level 32
- python挑战之level 31
- python挑战之level 18
- python挑战之level 24
- python挑战之level 23
- python挑战之level 33
- python挑战之level 28
- python挑战之level 14
- python挑战之level 22
- python挑战之level 26
- Python挑战游戏( PythonChallenge)闯关之路Level- 2
- python挑战之level 30
- Python挑战游戏( PythonChallenge)闯关之路Level- 1
- python挑战之level 20+21