LKI / chinese-calendar

判断一天是不是法定节假日/法定工作日(查看节假日安排)
https://pypi.org/project/chinesecalendar/
MIT License
1.06k stars 185 forks source link

请问下:get_holiday_detail 方法如何返回中文节假日名 #36

Closed userfhy closed 5 years ago

userfhy commented 5 years ago

请问下:get_holiday_detail 方法如何返回中文节假日名 现在返回的是英文

userfhy commented 5 years ago

明白了 先获取英文名 例如 labour_day 通过 calendar.Holiday.labour_day.chinese 可获取中文名

LKI commented 5 years ago

嗯~可以通过 calendar.Holiday(name).chinese 获取中文名~