A resource allocation method, performed by a network device, wherein the method is applied to the network device supporting a first service and a second service, wherein the first service comprises a mobile broadband service, the second service comprises an ultra-reliable and low latency service, and the method comprises: allocating resources to to-be-sent first service data, wherein the resources comprise a first resource, the first resource is a resource that is allowed to be preempted by second service data, and the resources comprise resource elements, REs, resource blocks, RBs, frequency resources, or symbols; wherein the resources further comprise a second resource, and the second resource is a resource that is not allowed to be preempted by the second service data; and the method further comprises: selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule; and mapping the first data to the second resource; wherein selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule, is to select a part of data on a system bit or an important information bit from the to-be-sent first service data as the first data; wherein the method further comprises: mapping to-be-sent second service data to the first resource; and sending the to-be-sent second service data by using the first resource; wherein before the selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule, the method further comprises: dividing the to-be-sent first service data into M blocks, wherein M is an integer greater than 1; and for each block, performing encoding processing on the block, and performing rate matching on the encoded block; wherein the selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule comprises: for each block, selecting, from the rate-matched block, a part of data as second data according to the preset rule; and cascading M pieces of second data into the first data in order of the to-be-sent first service data; wherein the selecting, from the rate-matched block, a part of data as second data according to the preset rule comprises: obtaining a capacity of the second resource; dividing the capacity of the second resource by M, to obtain a first length; and for each rate-matched block, determining, as the second data, a part of data that is in the block and whose length is the first length. allocating resources to to-be-sent first service data, wherein the resources comprise a first resource, the first resource is a resource that is allowed to be preempted by second service data, and the resources comprise resource elements, REs, resource blocks, RBs, frequency resources, or symbols; wherein the resources further comprise a second resource, and the second resource is a resource that is not allowed to be preempted by the second service data; and the method further comprises: selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule; and mapping the first data to the second resource; selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule; and mapping the first data to the second resource; wherein selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule, is to select a part of data on a system bit or an important information bit from the to-be-sent first service data as the first data; wherein the method further comprises: mapping to-be-sent second service data to the first resource; and sending the to-be-sent second service data by using the first resource; mapping to-be-sent second service data to the first resource; and sending the to-be-sent second service data by using the first resource; wherein before the selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule, the method further comprises: dividing the to-be-sent first service data into M blocks, wherein M is an integer greater than 1; and for each block, performing encoding processing on the block, and performing rate matching on the encoded block; dividing the to-be-sent first service data into M blocks, wherein M is an integer greater than 1; and for each block, performing encoding processing on the block, and performing rate matching on the encoded block; wherein the selecting, from the to-be-sent first service data, a part of data as first data according to a preset rule comprises: for each block, selecting, from the rate-matched block, a part of data as second data according to the preset rule; and cascading M pieces of second data into the first data in order of the to-be-sent first service data; for each block, selecting, from the rate-matched block, a part of data as second data according to the preset rule; and cascading M pieces of second data into the first data in order of the to-be-sent first service data; wherein the selecting, from the rate-matched block, a part of data as second data according to the preset rule comprises: obtaining a capacity of the second resource; dividing the capacity of the second resource by M, to obtain a first length; and for each rate-matched block, determining, as the second data, a part of data that is in the block and whose length is the first length. obtaining a capacity of the second resource; dividing the capacity of the second resource by M, to obtain a first length; and for each rate-matched block, determining, as the second data, a part of data that is in the block and whose length is the first length.