The utility model is about a plug and a data line, relates to the technical field of electronics, and solves the problem of increasing using flexibility of the plug and using flexibility of the data line. According to the mainly adopted technical scheme, the plug comprises a holding body, a plug interface and a wire. The holding body comprises a first part and a second part. The first part is provided with a first support arm and a second support arm which are oppositely arranged, and the first support arm and the second support are respectively provided with a connecting hole; one end of the second part is disposed between the first support arm and the second support arm; two opposite side faces of the end of the second part are respectively provided with a first rotary shaft and a second rotary shaft; and the first rotary shaft is inserted into the connecting hole of the first support arm, the second rotary shaft is inserted in the connecting hole of the second support arm, and the second part can rotate relative to the first part. The holding body of the plug is changed from an original one body into the two parts, i.e., the first part and the second part, the second part can rotate relative to the first part, the holding body can perform angle adjustments, and the using flexibility of the plug and the using flexibility of the data line are improved.