The black spots are rotted and mold is present. You can cut them away but it is best to get a new cauliflower.