The invention relates to a generator, in particular to an electronic variable power and variable speed wind power generator, which changes the power according to the wind power. The wind power generator comprises the generator, a main shaft, a shaft coupling, a rectification device, a sensor, and a plurality of generator units, wherein, the main shaft of each generator unit is connected by the shaft coupling, each generator unit is provided with the rectification device, and each rectification device is connected with a reversal relay; and the end of the generator is provided with the sensor. The invention replaces the original given power and given voltage generator by the electronic variable power and variable speed wind power generator which is applicable to the areas with changing wind speed, and more suitable for use at sea, and has the advantages of long on-line time, high wind energy utilization rate, less additional equipments, saving investment, long use life, simple operation and convenient use.