python 时间元组转时间戳

#!/usr/bin/python
# -*- coding: UTF-8 -*-
import time
print(time.mktime((2018, 9, 30, 9, 44, 31, 6, 273, 0)))

输出

1538271871.0

原文地址:https://www.cnblogs.com/sea-stream/p/10218795.html