遇到的问题:
mac上默认安装python2,自行安装python3.
编写python3的python文件,自动运行总是默认使用python2,只能自行在terminal中自行运行python ***.py.
解决方法:
在settings中搜索Code-runner:Executor Map By File Exetension
点击 Edit in settings,json
加入下面一段:
"code-runner.executorMap":{
"python":"pyhton3"
}
保存重新运行py文件即可使用python3运行!