def initialize(context):
run_daily(period,time='every_bar')
def period(context):
year=1900
if year % 400==0 :
print('既是闰年又是世纪年' )
if year % 100==0 and year % 400!=0:
print('平年,是世纪年')
if year % 400!=0 and year % 4==0 and year % 100!=0:
print('闰年')
if year % 4!=0:
print('平年')