A method for transmitting a reference signal, comprising: obtaining a sequence group number of the reference signal according to at least one of the following pieces of information: a number N of time domain symbols comprised in a time unit in which the reference signal is located; index information of time domain symbols in which the reference signal is located among the N time domain symbols comprised in the time unit; or a time unit index obtained according to a subcarrier spacing of a bandwidth part, BWP, in which the reference signal is located; determining the reference signal according to the sequence group number; and transmitting the reference signal, wherein obtaining the sequence group number of the reference signal according to the at least one of the pieces of information comprises: obtaining the sequence group number of the reference signal through the following manner: the sequence group number u = ( f gh ( x) + f ss)mod C; wherein f gh ( x) is a function with respect to x, x comprises at least one of the pieces of information, C is a total number of sequence groups, and f ss is obtained according to a parameter comprised in received signaling information, wherein h ( x) ƒ gh x = ∑ i = 0 D − 1 c D * h x + i * 2 i mod C wherein h(x) is a function with respect to x; and i =0 wherein D is an integer greater than or equal to 8, c(z) is a z-th value in a sequence generated by a random sequence function c(·), and z is a non-negative integer, and wherein the method satisfies: D ≥ ⌈ log 2 C ⌉ + ⌈ log 2 C x 1 ⌉ − 1 wherein x 1 =2 ┌log 2 ┐ - C. a number N of time domain symbols comprised in a time unit in which the reference signal is located; index information of time domain symbols in which the reference signal is located among the N time domain symbols comprised in the time unit; or a time unit index obtained according to a subcarrier spacing of a bandwidth part, BWP, in which the reference signal is located; determining the reference signal according to the sequence group number; and transmitting the reference signal, wherein obtaining the sequence group number of the reference signal according to the at least one of the pieces of information comprises: obtaining the sequence group number of the reference signal through the following manner: the sequence group number u = ( f gh ( x) + f ss)mod C; wherein f gh ( x) is a function with respect to x, x comprises at least one of the pieces of information, C is a total number of sequence groups, and f ss is obtained according to a parameter comprised in received signaling information, wherein h ( x) ƒ gh x = ∑ i = 0 D − 1 c D * h x + i * 2 i mod C wherein h(x) is a function with respect to x; and i =0 wherein D is an integer greater than or equal to 8, c(z) is a z-th value in a sequence generated by a random sequence function c(·), and z is a non-negative integer, and wherein the method satisfies: D ≥ ⌈ log 2 C ⌉ + ⌈ log 2 C x 1 ⌉ − 1 wherein x 1 =2 ┌log 2 ┐ - C. the sequence group number u = ( f gh ( x) + f ss)mod C; wherein f gh ( x) is a function with respect to x, x comprises at least one of the pieces of information, C is a total number of sequence groups, and f ss is obtained according to a parameter comprised in received signaling information, wherein h ( x) ƒ gh x = ∑ i = 0 D − 1 c D * h x + i * 2 i mod C wherein h(x) is a function with respect to x; and i =0 wherein D is an integer greater than or equal to 8, c(z) is a z-th value in a sequence generated by a random sequence function c(·), and z is a non-negative integer, and wherein the method satisfies: D ≥ ⌈ log 2 C ⌉ + ⌈ log 2 C x 1 ⌉ − 1 wherein x 1 =2 ┌log 2 ┐ - C.