Due to the%20gradual%20exhaustion%20of%20fossil%20energy%20and%20the%20gradual%20aggravation%20of%20environmental%20pollution,%20a%20large%20number%20of%20distributed%20photovoltaic%20cells%20are%20connected to the%20distribution%20side,%20which%20makes%20the%20energy%20management%20in%20the%20microgrid%20environment%20more%20difficult.%20An%20optimization%20model%20based%20on%20leader-follower%20game%20was%20proposed to realize%20the%20energy%20efficient%20consumption%20and%20reasonable%20resource%20allocation.%20Firstly,%20a%20new%20regional%20electricity%20market%20model%20is%20established%20for%20a%20residential%20community%20with%20new%20energy%20generation,%20and%20the%20selection%20scheme%20of%20market%20trading%20mode%20is%20proposed%20according to the%20time-of-use%20price%20mode%20and%20the%20internal%20transaction%20price%20mode.%20Secondly,%20the%20uncertain%20load%20mode%20of%20prosumer%20is%20proposed%20based%20on%20data-driven,%20and%20the%20revenue%20mode%20is%20established%20correspondingly.%20Finally,%20based%20on%20Stackleberg%20game%20theory,%20game%20model%20of%20sales%20users%20(leader)%20and%20power%20purchase%20users%20(followers)%20is%20proposed.%20The%20method%20and%20procedure%20are%20proposed%20based%20on%20differential%20evolution%20algorithm.%20With%20practical%20example,%20effectiveness%20of%20the%20model%20is%20verified%20in%20terms%20of%20improving%20community%20benefits%20and%20promoting%20energy%20absorption.