A vertical air conditioner, comprising an air conditioner body which comprises an air conditioner main body in which an air supply duct is formed, the air conditioner body further comprises a first panel and a second panel, and a first panel driving mechanism comprising a first rack formed at one end of the first panel; a first motor formed on the air conditioner main body; and a first gear rotatably connected to the first motor and meshing with the first rack; a second rack formed at the other end of the first panel opposite to the one end of the first panel where the first rack is located; and a second panel driving mechanism comprising a third rack formed at one end of the second panel; a third motor formed on the air conditioner main body; and a third gear rotatably connected to the third motor and meshing with the third rack; a fourth rack formed at the other end of the second panel opposite to the one end of the second panel where the third rack is located; for respectively driving the first panel and the second panel to slide away from each other to form an air outlet between the first panel and the second panel and an air outflow end of the air supply duct when the air conditioner is powered on, and for respectively slide the first panel and the second panel to slide towards each other to close the air outlet when the air conditioner is powered off, characterized in that a slide groove or rail is formed on a border of the air conditioner main body, wherein the first rack and the third rack are formed close to the slide groove or rail; and the first panel and the second panel slide around the air conditioner main body in the slide groove or rail; the first panel driving mechanism comprises: a second motor formed on the air conditioner main body; and a second gear rotatably connected to the second motor and meshing with the second rack; the second panel driving mechanism comprises: a fourth motor formed on the air conditioner main body; and a fourth gear rotatably connected to the fourth motor and meshing with the fourth rack; a first slide rail /first slide rail bracket is formed on the first panel, and a second slide rail bracket/second slide rail matching the first slide rail /first slide rail bracket is formed on the air conditioner main body; and a third slide rail/third slide rail bracket is formed on the second panel, and a fourth slide rail bracket/fourth slide rail matching the third slide rail/third slide rail bracket is formed on the air conditioner main body, wherein the first slide rail /first slide rail bracket is formed in the middle of the first panel, and the third slide rail/third slide rail bracket is formed in the middle of the second panel. a second motor formed on the air conditioner main body; and a second gear rotatably connected to the second motor and meshing with the second rack; the second panel driving mechanism comprises: a fourth motor formed on the air conditioner main body; and a fourth gear rotatably connected to the fourth motor and meshing with the fourth rack; a first slide rail /first slide rail bracket is formed on the first panel, and a second slide rail bracket/second slide rail matching the first slide rail /first slide rail bracket is formed on the air conditioner main body; and a third slide rail/third slide rail bracket is formed on the second panel, and a fourth slide rail bracket/fourth slide rail matching the third slide rail/third slide rail bracket is formed on the air conditioner main body, wherein the first slide rail /first slide rail bracket is formed in the middle of the first panel, and the third slide rail/third slide rail bracket is formed in the middle of the second panel. a fourth motor formed on the air conditioner main body; and a fourth gear rotatably connected to the fourth motor and meshing with the fourth rack; a first slide rail /first slide rail bracket is formed on the first panel, and a second slide rail bracket/second slide rail matching the first slide rail /first slide rail bracket is formed on the air conditioner main body; and a third slide rail/third slide rail bracket is formed on the second panel, and a fourth slide rail bracket/fourth slide rail matching the third slide rail/third slide rail bracket is formed on the air conditioner main body, wherein the first slide rail /first slide rail bracket is formed in the middle of the first panel, and the third slide rail/third slide rail bracket is formed in the middle of the second panel.