python练习程序(获取系统当前时间)

import time

#n=input("input a year:")
n=time.localtime()[1]
'''
if n%400==0 or (n%4==0 and n%100!=0):
    print "yes"
else:
    print "not"
'''
print n
posted @ 2012-06-11 21:48  Dsp Tian  阅读(813)  评论(0)    收藏  举报