datetime去除时分秒

 datetime.datetime.now().replace(microsecond=0)

 

posted @ 2021-12-17 11:43  长情不羁的五年  阅读(204)  评论(0编辑  收藏  举报