Tang was born on 12 May 1920 in Jintan, Jiangsu, Republic of China. After finishing middle school in Jintan, he entered WuxiNormal College in 1935. Two years later, however, the Second Sino-Japanese War broke out and the Japanese army occupied Jiangsu. Tang and his classmates fled Wuxi and begged their way to Wuhan in central China, where they lived in a refugee camp. In 1938, the Kuomintang government arranged for the student refugees to enroll at National Sichuan High School in Chongqing, China's wartime capital. He subsequently entered National Central University, then also exiled in Chongqing, and graduated from the Department of Physics in 1942.
After the outbreak of the Korean War, Tang gave up his doctoral studies and returned to China in 1951, where he joined the Institute of Applied Physics of the Chinese Academy of Sciences. He and Wang Shouwu, also a recent returnee from the US, together built a semiconductor research group at the institute. After being briefly disrupted by the Three-anti and Five-anti Campaigns in 1952, they planned to conduct research on the semiconductors germanium and silicon. Due to the Western world's embargo against China since the Korean War, however, they were unable to acquire sufficient high-purity material, and decided to work on galena and copper oxide instead. Tang stumbled upon the property of PbS as an infrared detector, and realized the importance of this property from the visiting Soviet scientist Ivan Bardin. Tang's group was the first to conduct infrared research in China. In 1958, Tang led an infrared detector group with scientists from nine research institutions. In 1964, he became Director of the Shanghai Institute of Technical Physics and turned it into one of China's top infrared research centers. He developed about ten infrared or semiconductor devices including the silicon solar cell and the mercury cadmium telluride detector, which were used in satellites, missiles, and civilian instruments. His research led to the development of infrared detectors for the PL-2 air-to-air missiles and is considered a major contribution to the Two Bombs, One Satellite project. As his work was highly classified, Tang disappeared from public view for many years. Tang was elected an academician of the Chinese Academy of Sciences in 1991. He was awarded the Ho Leung Ho Lee Prize for Science and Technology Progress, and donated the entire prize money of HK$200,000 to his alma mater, Hua Luogeng High School in Jintan. Tang published ten popular science books. In his old age, he frequently gave lectures to schoolchildren, and served as a scientific advisor to a children's science newspaper in Shanghai.