A new type of perovskite sensitized programmable WSe2photodiode is constructed based on MAPbI3/WSe2heterojunction, presenting flexible reconfigurable characteristics and prominent optoelectronic performances.