python 默认是python2的话,去文件更改比较麻烦,不过永久改变也挺好,如: https://www.cnblogs.com/zhzhang/p/6722959.html 这里介绍在pyspark偶尔用python3的情况: