查看python版本 1.未进入python shell python --version 2.进入python shell,有两种方法 (1) help() (2) import sys sys.version