单选题

闰年是公历中的名词,分为普通闰年和世纪闰年。普通年是4年一次,若公历年份是4的倍数且不是100的倍数则为普通闰年(如2004年、2020年就是普通闰年),现在想输出1949年到今年(2024年)之间的所有普通闰年,正确的列表推导式是? (    )

A

print([i for i in range(1949,2025)if i%4==0 and i%100!=0])

B

print([i for i in range(1949,2025)if i %4!=0 and i%100!=0])

C

print([for i in range(1949,2025)if i%4==0 and i%100=0])

D

print([for i in range(1949,2025)if i %4!=0 and i%100=0])

赣ICP备20007335号-2