1 from datetime import datetime 2 now = datetime.now() 3 print(now.strftime('%Y-%m-%d')) 4 print(now.strftime('%Y%m%d'))
18 时间的格式化
猜你喜欢
转载自www.cnblogs.com/reaix/p/12670997.html
今日推荐
周排行