dt = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time())) 复制代码
timestamp = int(time.mktime(time.strptime(dt, "%Y-%m-%d %H:%M:%S"))) 复制代码