python
import cclib
logfile = "example.log"
data = cclib.io.ccread(logfile)
molecule = data.atomcoords
energy = data.scfenergies[-1]
(Note: This article serves as an explanation of the technical principles of the cclib library in Python. It does not contain a complete programming code or related configurations. The given code example is for illustration purposes only.)