应该是不能直接全部替换,只能一行行读取,获取时间戳,然后转换:time_stamp = 1494579361time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time_stamp))