Scala 提取环境变量 scala> sys.env("HIVE_VERSION") res0: String = 2.2.0 Python 提取环境变量 import os print(os.environ["SPARK_HOME"])