时间戳是10位的整数,时间戳就是格林威治时间,就是北京时间1970-01-01 08:00:00,从那个时间到当前时间经过的总秒数 获得当前的时间戳 import time a = int(time.time()) print(a)