会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Hoganway
博客园
首页
新随笔
联系
订阅
管理
2016年8月7日
python中时间相关问题,仅作为笔记
摘要: 1.获取当前时间的两种方法: import datetime,timenow = time.strftime("%Y-%m-%d %H:%M:%S")print nownow = datetime.datetime.now()print now 2.获取上个月最后一天的日期(本月的第一天减去1天)
阅读全文
posted @ 2016-08-07 21:30 Hoganway
阅读(218)
评论(0)
推荐(0)
编辑
公告