python 取当前日期

import time

time.strftime('%Y-%m-%d',time.localtime(time.time()))

posted @ 2017-10-11 09:47  破晓e  阅读(182)  评论(0编辑  收藏  举报