Two new complexes {[Co(dcpy)(bipy)0.5]·H2O} (1) and {[Co(dcpy)(bipy)0.5(H2O)]·2H2O} (2) constructed from the same initial materials Co(NO3)2·6H2O, 3-(2′,5′-dicarboxylphenyl)pyridine (H2dcpy) and 4,4′-bipyridine (bipy), exhibiting varying architectures from a 3D 4-fold interpenetrated framework to a 2D layer-type porous coordination polymer (PCP) were synthesized by changing the reaction solvent. In particular, the dehydrated 2 shows a high selective gas sorption for H2 over N2 at 77 K and high selectivity for CO2 over N2 and CH4 at 293 K.