Python 时间戳变成字符串 import time stamp = int(time.time()) time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime(stamp))