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

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

软件界面

使用cf.SyntaxHighighter作为Windows Live Writer 2011的插件发布Python代码到博客园

插入后效果
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/

相关文章:

  • 2021-04-08
  • 2022-12-23
  • 2022-01-19
  • 2021-09-29
  • 2022-01-05
  • 2021-11-25
猜你喜欢
  • 2022-02-04
  • 2021-11-29
  • 2021-11-13
  • 2021-10-10
  • 2021-12-20
  • 2021-06-20
  • 2022-12-23
相关资源
相似解决方案