when doing:着重一边一边,同时发生upon doing:由于怎么样了,所以怎么样onec doing:做了某事之后才怎么样
选a若选b则应该是the beggar turned around and left the moment when seeing the police coming.
我觉得选b,
答案是D 但不知道为什么