A signal transmission method performed by a first terminal, comprising: sending a first message to a network device, wherein the first message indicates a transmission mode of the first terminal to transmit a signal; receiving a second message from the network device, wherein the second message indicates resources of the first terminal to transmit the signal; and transmitting the signal on the resources; wherein the first message is further used to indicate a quantity of signals transmitted by using the transmission mode; wherein the transmitting the signal on the resources comprises: transmitting the signal based on the transmission mode indicated in the first message; or when the second message is further used to indicate a transmission mode used for transmitting the signal, transmitting the signal based on the transmission mode indicated in the second message; characterised in that when the signal is transmitted based on the transmission mode indicated in the first message, the transmitting the signal based on the transmission mode indicated in the first message comprises: determining a target resource from the resources based on the transmission mode indicated in the first message and a third resource, and transmitting the signal by using the target resource; when the signal is transmitted based on the transmission mode indicated in the second message, the transmitting the signal based on the transmission mode indicated in the second message comprises: determining a target resource from the resources based on the transmission mode indicated in the second message and a third resource, and transmitting the signal by using the target resource, wherein the third resource is determined by the first terminal, or indicated in the second message. sending a first message to a network device, wherein the first message indicates a transmission mode of the first terminal to transmit a signal; receiving a second message from the network device, wherein the second message indicates resources of the first terminal to transmit the signal; and transmitting the signal on the resources; wherein the first message is further used to indicate a quantity of signals transmitted by using the transmission mode; wherein the transmitting the signal on the resources comprises: transmitting the signal based on the transmission mode indicated in the first message; or when the second message is further used to indicate a transmission mode used for transmitting the signal, transmitting the signal based on the transmission mode indicated in the second message; characterised in that when the signal is transmitted based on the transmission mode indicated in the first message, the transmitting the signal based on the transmission mode indicated in the first message comprises: determining a target resource from the resources based on the transmission mode indicated in the first message and a third resource, and transmitting the signal by using the target resource; when the signal is transmitted based on the transmission mode indicated in the second message, the transmitting the signal based on the transmission mode indicated in the second message comprises: determining a target resource from the resources based on the transmission mode indicated in the second message and a third resource, and transmitting the signal by using the target resource, wherein the third resource is determined by the first terminal, or indicated in the second message. transmitting the signal based on the transmission mode indicated in the first message; or when the second message is further used to indicate a transmission mode used for transmitting the signal, transmitting the signal based on the transmission mode indicated in the second message; characterised in that when the signal is transmitted based on the transmission mode indicated in the first message, the transmitting the signal based on the transmission mode indicated in the first message comprises: determining a target resource from the resources based on the transmission mode indicated in the first message and a third resource, and transmitting the signal by using the target resource; when the signal is transmitted based on the transmission mode indicated in the second message, the transmitting the signal based on the transmission mode indicated in the second message comprises: determining a target resource from the resources based on the transmission mode indicated in the second message and a third resource, and transmitting the signal by using the target resource, wherein the third resource is determined by the first terminal, or indicated in the second message.