在进行excel中导入时间经常无法处理
import datetime
def date(dates):
delta=datetime.timedelta(days=dates)
today=datetime.datetime.strptime('1899-12-30','%Y-%m-%d')+delta
return datetime.datetime.strftime(today,'%Y年%m月%d日')
print(date(44140))
#2020年11月05日
感觉有用点赞加关注