任何人都可以解释以下内容吗?
timex = [2012, 3, 1]
epoch = calendar.timegm(datetime.datetime(*timex).utctimetuple())
date = datetime.date.fromtimestamp(epoch)
print date # [2012, 2, 29]
timex = [2012, 3, 15]
epoch = calendar.timegm(datetime.datetime(*timex).utctimetuple())
date = datetime.date.fromtimestamp(epoch)
print date # [2012, 3, 14]
我不确定这是否与我对元组、列表或时间的误解有关,但 python 总是落后一天:P