Measurement of the CMB temperature power spectrum and constraints on cosmology from the SPT-3G 2018 TT ,