插件说的超级清楚明白且有例子
https://pypi.org/project/chinesecalendar/#description
1.下载插件
2.cmd命令行安装:pip install chinesecalendar
3.引用:
import chinese_calendar
或者
from chinese_calendar import is_workday, is_holiday
4.示例
mydate = datetime.date(2018, 4, 30)
print(is_holiday(mydate))