datetime.date转换成字符串

 

datetime.date(2020, 11, 10)

直接

.strftime('%Y-%m-%d')
posted @ 2021-01-20 18:58  bH1pJ  阅读(172)  评论(0编辑  收藏  举报