Liang was a native of Changle in Fujian province. From 1888 to 1890, he lived in Japan, where his father had been dispatched to by the government of Qing Dynasty China. In 1903, he passed the Imperial examination and in 1905 was accepted to the predecessor to Beijing University.
Liang, a native of Changle in Fujian province, lived in Japan from 1888 to 1890 while his father served under the Qing Dynasty government. He passed the Imperial examination in 1903 and was accepted into the precursor to Beijing University in 1905.