The invention discloses a rotating shaft mechanism which comprises a rotating shaft group, fixing parts and sliding parts, wherein the rotating shaft group comprises at least two parallelly arranged rotating shafts; the fixing parts are disposed on the two sides of the rotating shaft group; and the sliding parts are used for connecting the rotating shaft group with the fixing parts and at least disposed on one side of the rotating shaft group. When the rotating shafts at the symmetric positions are close to or far away from each other, due to the action of the sliding parts, the distance between the rotating shaft group and the fixing parts changes in the length direction of the rotating shaft mechanism. According to the rotating shaft mechanism, the sliding parts and the fixing parts are additionally arranged on the basis of an original rotating shaft mechanism. The sliding parts and the fixing parts can offset the displacement change generated by the movement of the rotating shafts being close to or far away from each other, it is guaranteed that the length of the outer side of the rotating shaft mechanism is unchanged, and a flexible screen laid on the rotating shaft group and the fixing parts is not stretched or compressed. Therefore, the rotating shaft mechanism can normally cooperate with the flexible screen for use, and the damage to the flexible screen is avoided. The invention also provides an electronic product with the rotating shaft mechanism.