python中获取到今天为止两年前的日期
import timeend_time = time.strftime('%Y-%m-%d',time.localtime(time.time()))start_year = int(time.strftime('%Y',time.localtime(time.time()))) - 2month_day = time.strftime('%m-%d',time.localtime(ti...