📜  在 python 代码示例中获取当前年份

📅  最后修改于: 2022-03-11 14:46:14.106000             🧑  作者: Mango

代码示例3
from datetime import date
year = date.today().year
print(year)