记录下
from datetime import datetime, date
from dateutil.relativedelta import relativedelta
# 获取当前日期
now = datetime.now()
# 获取当前年份
current_year = now.year
# 计算当前季度
current_quarter = (now.month - 1) // 3 + 1
current_month = now.month
# 获取当前是一年中的第几周
current_week = now.isocalendar()[1]
print(f"当前年份: {current_year}")
print(f"当前季度: {current_quarter}")
print(f"当前月份: {current_month}")
print(f"当前是今年的第 {current_week} 周")