The invention provides a compressor and an air conditioner. The compressor comprises a main shaft, an air cylinder, a
flange and a
slip sheet, wherein the main shaft comprises convex parts, and the convex parts, the air cylinder, the
flange and the
slip sheet jointly form compression cavities, at least one main shaft exhaust port is formed in the position, corresponding to each compression cavity,of the convex parts, a
flange exhaust port is formed in the flange, one ends of the main shaft exhaust ports communicate with the compression cavities, the other ends of the main shaft exhaust portscan communicate with the flange exhaust port in the rotating process of the main shaft so as to exhaust air, an
exhaust valve assembly is arranged at the flange exhaust port, and the
exhaust valve assembly can automatically exhaust the air according to the pressure in the compression cavities. According to the compressor and the air conditioner, the structural design of the main shaft exhaust ports, the
exhaust valve assembly and the flange exhaust port, it is effectively guaranteed that the number and area of the exhaust port in each compression cavity are fixed, the exhaust port area is large, the exhaust speed is reduced, smooth exhaust of the compressor can be achieved, exhaust losses are effectively reduced, the exhaust mode is simple, and the working performance and reliability of the compressor are ensured.