A power allocation method, comprising: , calculating transmission power of each user equipment in each channel when a plurality of user equipments simulated by an electronic device are respectively connected to a base station; and , adjusting the transmission power of each user equipment in each channel according to a preset priority of each user equipment in each channel, to make a sum of adjusted transmission power of each user equipment in each channel not exceed maximum transmission power of the electronic device, characterized in that , the adjusting the transmission power of each user equipment in each channel according to the preset priority of each user equipment in each channel comprises: , determining a priority coefficient corresponding to the preset priority of each user equipment in each channel; , calculating the adjusted transmission power of each user equipment in each channel according to the priority coefficient of each user equipment in each channel and the transmission power of each user equipment in each channel; , calculating the sum of the adjusted transmission power of each user equipment in each channel; , determining whether a difference value obtained by subtracting the sum from the maximum transmission power is less than 0; and , processing the adjusted transmission power of each user equipment in each channel according to a determination result. , calculating transmission power of each user equipment in each channel when a plurality of user equipments simulated by an electronic device are respectively connected to a base station; and , adjusting the transmission power of each user equipment in each channel according to a preset priority of each user equipment in each channel, to make a sum of adjusted transmission power of each user equipment in each channel not exceed maximum transmission power of the electronic device, characterized in that , the adjusting the transmission power of each user equipment in each channel according to the preset priority of each user equipment in each channel comprises: , determining a priority coefficient corresponding to the preset priority of each user equipment in each channel; , calculating the adjusted transmission power of each user equipment in each channel according to the priority coefficient of each user equipment in each channel and the transmission power of each user equipment in each channel; , calculating the sum of the adjusted transmission power of each user equipment in each channel; , determining whether a difference value obtained by subtracting the sum from the maximum transmission power is less than 0; and , processing the adjusted transmission power of each user equipment in each channel according to a determination result. , determining a priority coefficient corresponding to the preset priority of each user equipment in each channel; , calculating the adjusted transmission power of each user equipment in each channel according to the priority coefficient of each user equipment in each channel and the transmission power of each user equipment in each channel; , calculating the sum of the adjusted transmission power of each user equipment in each channel; , determining whether a difference value obtained by subtracting the sum from the maximum transmission power is less than 0; and , processing the adjusted transmission power of each user equipment in each channel according to a determination result. <EOS>