当前位置: 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条