Python时间 Go博客 收录于 python 2022-03-09 约 27 字 预计阅读 1 分钟 目录 1 2 3 4 5 6 7 8 9 10 11 >>> time.strftime('%X') '11:09:41' >>> time.strftime('%x') '03/09/22' >>> time.strftime('%d') '09' >>> time.strftime('%y') '22' >>> time.strftime('%m') '03' >>>