你可以试试这个:
不放假,。。考虑到:
import numpy as np np.busday_count(d1.strftime("%Y-%m-%d"), d2.strftime("%Y-%m-%d"))