1importtime2importdatetime3s ='2015-04-17 11:25:30'4d = datetime.datetime.strptime(s,"%Y-%m-%d %H:%M:%S")5printint(time.mktime(d.timetuple())) 运行结果:1429241130 需要当前的日期,并显示出时间轴,然后推出七天前的具体日期 1#! /usr/bin/env python2#-*- coding=utf-8 -*-3importre4imp...