import time time.time()返回当前时间的时间戳 >>> time.asctime(time.localtime(time.time())) 'Sun Feb 14 22:30:18 2016'