[Python] python中的日期和时间格式化输出 →→→→→进入此内容的聊天室

来自 , 2020-12-28, 写在 Python, 查看 148 次.
URL http://www.code666.cn/view/864465fb
  1. >>> import datetime
  2. >>> now=datetime.datetime.now()
  3. >>> now.strftime('%a')
  4. 'Sun'
  5.  
  6.  
  7.  

回复 "python中的日期和时间格式化输出"

这儿你可以回复上面这条便签

captcha