下列两个代码块的功能一样。( )
A.if(year%4)==0:
if(year%100)==0:
print(year)
B.if(year%4)==0 and (year%100)==0:
正确
错误