To further understand the argument about the superconductivity in PrBa2Cu3Oy, We try to change YBa2Cu3Oy to PrBa2Cu3Oy gradually, studying the detailed change during the change, and hope to find some clue to the argument. The single-phase samples of Y1-xPrxBa2Cu3Oy (x = 0, 0.1, 0.2, 0.3, 0.5, 0.6, 0.8, 1.0, respectively) were synthesized and characterized by DC magnetization measurement and X-ray diffraction. The structure of the samples was refined by Rietveld method. After careful analysis, it is found that as the x increasing, Ba moves toward the Cu-O(1) plane, the bond length between Y-Ba, Y-Cu(2), and Ba-O(1), and Cu(1)-0(4) increase simultaneously. It demonstrates that as the Pr content increases, the distance between the active block and the carrier reservoir block becomes farer and farer, and the area of the carrier reservoir block increases. It is suggested that the doping of Pr to Y in YBa2Cu3Oy changes some local structure and result in the suppression and vanishing of the superconductivity.