import time def getTime(): now = time.localtime() now_time = time.strftime("%Y-%m-%d %H:%M:%S", now) return now_time # 封装成layui返回数据格式  def renderJsonForLayUI(data, count): return {"code": 0, "msg": "", "count": count, "data": data} if __name__ == '__main__': print(getTime())