python获取当前时间

datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')

posted @ 2017-12-28 09:35  余***龙  阅读(302)  评论(0编辑  收藏  举报