单项选择题

______ in Hangzhou for more than ten years, he knew the city quite well.

A.Living
B.Having lived
C.Lives
D.Lived