完善Generator