安装包cf.SyntaxHighighter.msi v1.2下载地址:

http://www.cnblogs.com/yaoshiyou/archive/2009/11/25/1610901.html

软件界面

image

插入后效果
from random import randint 

def leapYear(year):
    a4 = year % 4
    a100 = year % 100
    a400 = year % 400
    if (a4 == 0 and a100 != 0) or a400 == 0: 
        return True
 
yearList = []
for eachYear in range(20):
    yearList.append(randint(1000, 2051))

print filter(leapYear, yearList)
# From www.cnblogs.com/balian/
posted on 2012-07-29 11:48  balian  阅读(369)  评论(0编辑  收藏  举报