From Electronic Structure Theory to Simulating Electronic Spectra从电子结构理论模电子光谱