可以使用datetime和pandas库来实现。
import datetime
current_date = datetime.date.today()
import pandas as pd
current_date = pd.to_datetime('today').date()
以上是使用Python从工作日获取日期的方法,可以根据实际需求选择使用datetime库或pandas库来实现。
领取专属 10元无门槛券
手把手带您无忧上云