python 取当前日期

import time

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

原文地址:https://www.cnblogs.com/pxfb/p/7649070.html