python 取当前日期

import time

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

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