Proven oil and gas reserves in carbonate rocks comprise a high proportion of oil and gas fields, but these reservoirs have high heterogeneity. It is of great importance to study the micropore structures and percolation characteristics of carbonate rocks for the development of oilfields. In this paper, reservoirs are studied by means of casting sections, high-pressure mercury injection, and water and gas flooding oil phase permeability experiments. Reservoirs are classified into three categories, I, II, and III, by the k-means cluster analysis method. The results show that class I reservoirs are mainly composed of biolimestone with strong dissolution, displacement pressure of 0.016 MPa, median pressure of 0.135 MPa, mercury removal efficiency of 17.15%, well-developed pore throats, and good connectivity. They have the highest reservoir quality index and strong percolation ability. Class II reservoirs are mainly biogenic limestone and granular limestone with intergranular pores, a displacement pressure of 0.098 MPa, a median pressure of 6.026 MPa, and a mercury removal efficiency of 25.82%. The pore throat class is complex, and the sorting is poor. Class III reservoirs are mainly clastic limestone with residual intergranular pores, poor connectivity, displacement pressure of 0.403 MPa, median pressure of 3.77 MPa, mercury removal efficiency of 14.01%, small median radii, and good sorting performance. Relative permeability experiments show that water drive permeability at the isopermeability point is (0.049 10 −3 μm 2 ) higher than that of gas drive (0.041 10 −3 μm 2 ). The permeability of oil and water phases in class I reservoirs is obviously higher than those of class II and III reservoirs. When gas flooding is used, the phase permeability characteristics of class I and II reservoirs are no different than when water flooding is used. The permeability of gas flooding is slightly lower than that of water flooding. Because of the high proportion of micropores in class III reservoirs, gas can easily enter the pores, so the relative permeability of the gas phase increases rapidly. With increases in injection volume, the ultimate oil displacement efficiency of class I reservoirs can reach 53.2%, while those of class II and III reservoirs are 50.7 and 46.1%, respectively. This study provides important guidance for formulating oilfield development plans.