查下manual就可以知道了,有多个类似变量可用 sys.version a string containing the version number of the python interpreter plus additional **rmation on the build number and compiler used. th** string ** d**played when the interactive interpreter ** started. do not extract version **rmation out of it, rather, use version_** and the functions provided by the platform module.