编写python脚本,需要从python2.7环境切换到python3.6,操作如下图: 开始为python2.7: 切换设置:File/Settings/Project:XXX/Project Interpreter 切换完成: