to replace someone temporarily
He had to stand in for the lead actor during the rehearsal.
他不得不在排练期间临时替代主角。