A resource selection method, applied to a first terminal, the method comprising: determining a resource listening window, wherein the resource listening window comprises only a part of slots before a slot m where a selected resource is located; and when a listening result of the resource listening window is that a resource conflict occurs between the selected resource and a reserved resource of a second terminal, performing resource reselection on the selected resource, wherein the determining the resource listening window comprises: determining the resource listening window according to a listening window parameter, wherein the listening window parameter comprises: a bitmap and a time domain starting position of the bitmap; and the determining the resource listening window according to the listening window parameter comprises: determining that the resource listening window comprises: at least one slot before the slot m where the selected resource is located, the at least one slot is specified in a time domain by the bitmap and the time domain starting position of the bitmap, and a slot indicated by a bit with a first value in the bitmap is the slot in the resource listening window, wherein the method further comprises: receiving configuration signaling, wherein the configuration signaling is used for configuring the listening window parameter, wherein the receiving the configuration signaling comprises: receiving first configuration signaling sent by a network device, wherein the first configuration signaling comprises: downlink control information, DCI; or, radio resource control, RRC, signaling; or, a system information block, SIB, message. determining a resource listening window, wherein the resource listening window comprises only a part of slots before a slot m where a selected resource is located; and when a listening result of the resource listening window is that a resource conflict occurs between the selected resource and a reserved resource of a second terminal, performing resource reselection on the selected resource, wherein the determining the resource listening window comprises: determining the resource listening window according to a listening window parameter, wherein the listening window parameter comprises: a bitmap and a time domain starting position of the bitmap; and the determining the resource listening window according to the listening window parameter comprises: determining that the resource listening window comprises: at least one slot before the slot m where the selected resource is located, the at least one slot is specified in a time domain by the bitmap and the time domain starting position of the bitmap, and a slot indicated by a bit with a first value in the bitmap is the slot in the resource listening window, wherein the method further comprises: receiving configuration signaling, wherein the configuration signaling is used for configuring the listening window parameter, wherein the receiving the configuration signaling comprises: receiving first configuration signaling sent by a network device, wherein the first configuration signaling comprises: downlink control information, DCI; or, radio resource control, RRC, signaling; or, a system information block, SIB, message. determining the resource listening window according to a listening window parameter, wherein the listening window parameter comprises: a bitmap and a time domain starting position of the bitmap; and the determining the resource listening window according to the listening window parameter comprises: determining that the resource listening window comprises: at least one slot before the slot m where the selected resource is located, the at least one slot is specified in a time domain by the bitmap and the time domain starting position of the bitmap, and a slot indicated by a bit with a first value in the bitmap is the slot in the resource listening window, wherein the method further comprises: receiving configuration signaling, wherein the configuration signaling is used for configuring the listening window parameter, wherein the receiving the configuration signaling comprises: receiving first configuration signaling sent by a network device, wherein the first configuration signaling comprises: downlink control information, DCI; or, radio resource control, RRC, signaling; or, a system information block, SIB, message. determining that the resource listening window comprises: at least one slot before the slot m where the selected resource is located, the at least one slot is specified in a time domain by the bitmap and the time domain starting position of the bitmap, and a slot indicated by a bit with a first value in the bitmap is the slot in the resource listening window, wherein the method further comprises: receiving configuration signaling, wherein the configuration signaling is used for configuring the listening window parameter, wherein the receiving the configuration signaling comprises: receiving first configuration signaling sent by a network device, wherein the first configuration signaling comprises: downlink control information, DCI; or, radio resource control, RRC, signaling; or, a system information block, SIB, message. receiving configuration signaling, wherein the configuration signaling is used for configuring the listening window parameter, wherein the receiving the configuration signaling comprises: receiving first configuration signaling sent by a network device, wherein the first configuration signaling comprises: downlink control information, DCI; or, radio resource control, RRC, signaling; or, a system information block, SIB, message.