A wireless communication method, comprising: communicating, by a first device, with a second device through a first frequency domain part in a first listening bandwidth of an unlicensed frequency band, wherein the first listening bandwidth comprises the first frequency domain part and a first reserved resource, the first reserved resource is located on at least one side of the first listening bandwidth, and the first reserved resource is a guard band, wherein a fourth sub-band of a third reserved resource of a third listening bandwidth of the unlicensed frequency band belongs to the first listening bandwidth; wherein the third listening bandwidth comprises a third frequency domain part and the third reserved resource, wherein the third frequency domain part is available for wireless communication transmission, the third reserved resource is located on at least one side of the third listening bandwidth, the third reserved resource is a guard band, and at least part of frequency domain resources of the first reserved resource and the fourth sub-band do not overlap; and wherein the first device is a terminal device and the second device is a network device, and the method further comprises: receiving, by the first device, third indication information sent by the second device, the third indication information being used to determine whether the first frequency domain part comprises a part of the fourth sub-band that does not belong to the first reserved resource, or wherein the first device is a network device and the second device is a terminal device, and the method further comprises: sending, by the first device, fourth indication information to the second device, the fourth indication information being used to determine whether the first frequency domain part comprises a part of the fourth sub-band that does not belong to the first reserved resource. communicating, by a first device, with a second device through a first frequency domain part in a first listening bandwidth of an unlicensed frequency band, wherein the first listening bandwidth comprises the first frequency domain part and a first reserved resource, the first reserved resource is located on at least one side of the first listening bandwidth, and the first reserved resource is a guard band, wherein a fourth sub-band of a third reserved resource of a third listening bandwidth of the unlicensed frequency band belongs to the first listening bandwidth; wherein the third listening bandwidth comprises a third frequency domain part and the third reserved resource, wherein the third frequency domain part is available for wireless communication transmission, the third reserved resource is located on at least one side of the third listening bandwidth, the third reserved resource is a guard band, and at least part of frequency domain resources of the first reserved resource and the fourth sub-band do not overlap; and wherein the first device is a terminal device and the second device is a network device, and the method further comprises: receiving, by the first device, third indication information sent by the second device, the third indication information being used to determine whether the first frequency domain part comprises a part of the fourth sub-band that does not belong to the first reserved resource, or wherein the first device is a network device and the second device is a terminal device, and the method further comprises: sending, by the first device, fourth indication information to the second device, the fourth indication information being used to determine whether the first frequency domain part comprises a part of the fourth sub-band that does not belong to the first reserved resource.