python 将 日期类型的当前时间 转换为 字符串

a =   datetime.now().strftime('%Y-%m-%d')
print(a)

 

posted @ 2021-10-27 11:28  茶叶蛋蛋  阅读(1027)  评论(0)    收藏  举报