have fun in doing sth
in可以省略
have fun with sth/sb:和...玩的很开心.[举例]He had fun with his friends.(他和朋友们玩的很开心.)