In this paper, molecular dynamics simulation method is used to investigate the contacting configuration of carbon nanotubes with open ends and metal, so as to obtain the law of radial compression deformation of carbon nanotubes. The obtained results show that after horizontally contacting the metal surface, the radial compression deformation is affected by the contact length, the diameter of the tube, the type of metal and the number of layers. Based on the first principles combining tight-binding density functional theory and non-equilibrium Green's function, the electron transport properties of carbon nanotubes with different diameters, chirality, lamellar and radial deformation are systematically studied. The obtained results show that the current of metallic single-walled carbon nanotubes presents linear change in a bias voltage range [-2 V, 2 V], and the current-voltage curve is symmetrical about the origin. The magnitude of the current is only related to the bias voltage, not to the diameter; when the carbon nanotubes are deformed by radial compression, the current growth trend shows down and even plateau effect may appear under a larger bias voltage. The current conducted in the semiconducting single-walled carbon nanotubes decreases with the increase of radial compression deformation, and the current-voltage curve gradually transforms from semiconductor characteristics to metallic characteristics. The trend of the current-voltage curve of double-walled carbon nanotubes is consistent with that of metallic single-walled carbon nanotubes. However, the non-linear variation amplitude of the current-voltage curve of double-walled carbon nanotubes is less affected by the radial compression deformation. Due to the increases of system and walls of nanotubes, the current of double-walled carbon nanotubes is twice as high as that of single-walled carbon nanotubes under the same bias voltage. The electrons can produce transitions through rapid vibration between adjacent tubes, in view of that interlayer coupling characteristics of three-walled carbon nanotubes reduce the degeneracy of the energy level and larger system increases the density of states near the Fermi level, resulting in large oscillations and asymmetry about the origin of the current-voltage curve.