python获取当前时间

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

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