Excel 日期格式读入到python 的xlrd 模块中。转换格式
2021-03-07 17:38 ttym88m 阅读(154) 评论(0) 编辑 收藏 举报asdf = xlrd.xldate.xldate_as_datetime(date,0) #2019-06-01 17:36:46 datetime.datetime
sd = xlrd.xldate.xldate_as_datetime(date,0).__format__('%Y-%m-%d') #2019-06-01 str
asd = xlrd.xldate.xldate_as_datetime(date,0).__str__() #2019-06-01 17:36:46 str
2019-06-01 17:36:46 datetime.datetime
2019-06-01 str
2019-06-01 17:36:46 str