当前位置: redice's Blog > TAG标签 > Python datet

日期:11-03-12 |  分类:Python |  标签:Python datet |  0 Comments

获取当前时间(字符串格式): from datetime import datetime datetime.now().strftime('%Y-%m-%d %H:%M:%S') '2011-03-12 21:13:12' 更多格式化字符: Directive Meaning Notes %a Locales abbreviated weekday name. %A Locales full weekday name. %b Lo

阅读剩余部分...

    共1页/1条

redice's Blog  is powered by DedeCms |  Theme by Monkeii.Lee |  网站地图 |  本服务器由西安鲲之鹏网络信息技术有限公司友情提供

返回顶部