prefer to do,是喜欢做什么事,比如:I prefer to swim.
prefer doing,常用的是prefer doing sth to doing sth,比如:I prefer playing basketball than playing football.意思是:与踢足球相比,我更喜欢打篮球.
基本相同,
prefer to do 表示一时性的喜欢
prefer doing表示长时间的,一贯性的喜欢
又:宁愿干...也不干...
prefer to do rather than do sth = prefer doing to doing
prefer的用法是最灵活的