📜  如何从 Python 中的周数获取日期? - Python 代码示例

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

代码示例1
import datetime
from dateutil.relativedelta import relativedelta
 
week = 25
year = 2021
date = datetime.date(year, 1, 1) + relativedelta(weeks=+week)
print(date)