Marine shales from the Niutitang Formation and marine–continental transitional shales from the Longtan Formation are two sets of extremely important hydrocarbon source rocks in South China. In order to quantitatively compare the pore complexity characteristics between marine and marine–continental transitional shales, the shale and kerogen of the Niutitang Formation and the Longtan Formation are taken as our research subjects. Based on organic petrology, geochemistry, and low-temperature gas adsorption analyses, the fractal dimension of their pores is calculated by the Frenkel–Halsey–Hill (FHH) and Sierpinski models, and the influences of total organic carbon (TOC), vitrinite reflectance (Ro), and mineral composition on the pore fractals of the shale and kerogen are discussed. Our results show the following: (1) Marine shale predominantly has wedge-shaped and slit pores, while marine–continental transitional shale has inkpot-shaped and slit pores. (2) Cylindrical pores are common in organic matter of both shale types, with marine shale having a greater gas storage space (CRV) from organic matter pores, while marine–continental transitional shale relies more on inorganic pores, especially interlayer clay mineral pores, for gas storage due to their large specific surface area and high adsorption capacity (CRA). (3) The fractal characteristics of marine and marine–continental transitional shale pores are influenced differently. In marine shale, TOC positively correlates with fractal dimensions, while in marine–continental shale, Ro and clay minerals have a stronger influence. Ro is the primary factor affecting organic matter pore complexity. (4) Our two pore fractal models show that the complexity of the shale in the Longtan Formation surpasses that of the shale in the Niutitang Formation, and type I kerogen has more complex organic matter pores than type III, aiding in evaluating pore connectivity and flow effectiveness in shale reservoirs.