public Ticket in(Car car) {
        if(isFull()) {
            throw new ParkException("停车场已满，不能停车了。");
        }
        Ticket ticket = new Ticket(car.getCode());
        this.carList.put(ticket, car);
        return ticket;
    }