当妈妈回来的时候,我正在写作业翻译是:When my mother came back, I was writing my homework.
I was doing my homework when my mother returned.