from lunardate import LunarDate
# 定义农历年、月、日
year = 2023
month = 8
day = 15
# 将农历日期转换为公历日期
lunar_date = LunarDate(year,month, day, isLeapMonth=False) # isLeapMonth是否为闰月
solar_date = lunar_date.toSolarDate()
# 输出公历日期
print("公历日期:{}年{}月{}日".format(solar_date.year, solar_date.month, solar_date.day))