FESTIVAL_TYPE= {
'new_years_day' : '元旦',
'spring_festival' : '春节',
'tomb_sweeping_day' : '清明节',
'labour_day' : '国际劳动节',
'dragon_boat_festival' : '端午节',
'national_day' : '国庆节',
'mid_autumn_festival' : '中秋节',
'day_off' : '调休日需上班',
'shopping_festival' : '自定义节日-双11'
}
HOLIDAY = {
datetime.date(year=2019, month=1, day=1): FESTIVAL_TYPE['new_years_day'],
datetime.date(year=2019, month=2, day=2): FESTIVAL_TYPE['day_off'],
datetime.date(year=2019, month=2, day=3): FESTIVAL_TYPE['day_off'],
datetime.date(year=2019, month=2, day=4): FESTIVAL_TYPE['spring_festival'],
datetime.date(year=2019, month=2, day=5): FESTIVAL_TYPE['spring_festival'],
datetime.date(year=2019, month=2, day=6): FESTIVAL_TYPE['spring_festival'],
datetime.date(year=2019, month=2, day=7): FESTIVAL_TYPE['spring_festival'],
datetime.date(year=2019, month=2, day=8): FESTIVAL_TYPE['spring_festival'],
datetime.date(year=2019, month=2, day=9): FESTIVAL_TYPE['spring_festival'],
datetime.date(year=2019, month=2, day=10): FESTIVAL_TYPE['spring_festival'],
datetime.date(year=2019, month=4, day=5): FESTIVAL_TYPE['tomb_sweeping_day'],
datetime.date(year=2019, month=4, day=6): FESTIVAL_TYPE['tomb_sweeping_day'],
datetime.date(year=2019, month=4, day=7): FESTIVAL_TYPE['tomb_sweeping_day'],
datetime.date(year=2019, month=5, day=1): FESTIVAL_TYPE['labour_day'],
datetime.date(year=2019, month=6, day=7): FESTIVAL_TYPE['dragon_boat_festival'],
datetime.date(year=2019, month=6, day=8): FESTIVAL_TYPE['dragon_boat_festival'],
datetime.date(year=2019, month=6, day=9): FESTIVAL_TYPE['dragon_boat_festival'],
datetime.date(year=2019, month=9, day=13): FESTIVAL_TYPE['mid_autumn_festival'],
datetime.date(year=2019, month=9, day=14): FESTIVAL_TYPE['mid_autumn_festival'],
datetime.date(year=2019, month=9, day=15): FESTIVAL_TYPE['mid_autumn_festival'],
datetime.date(year=2019, month=9, day=29): FESTIVAL_TYPE['day_off'],
datetime.date(year=2019, month=10, day=1): FESTIVAL_TYPE['national_day'],
datetime.date(year=2019, month=10, day=2): FESTIVAL_TYPE['national_day'],
datetime.date(year=2019, month=10, day=3): FESTIVAL_TYPE['national_day'],
datetime.date(year=2019, month=10, day=4): FESTIVAL_TYPE['national_day'],
datetime.date(year=2019, month=10, day=5): FESTIVAL_TYPE['national_day'],
datetime.date(year=2019, month=10, day=6): FESTIVAL_TYPE['national_day'],
datetime.date(year=2019, month=10, day=7): FESTIVAL_TYPE['national_day'],
datetime.date(year=2019, month=10, day=12): FESTIVAL_TYPE['day_off'],
datetime.date(year=2019, month=11, day=11): FESTIVAL_TYPE['shopping_festival'],
}
ANNIVERSARY = {