to replace someone temporarily
He had to stand in for the lead actor during the rehearsal.
他不得不在排練期間臨時替代主角。