这是一个系列,记录我Tensorflow开发常用的代码,小常识,有些是参考网上代码,(讲的可能有点烂,求不要打脸,嘤嘤嘤~~)送给那些需要的人。可以相互交流,喜欢的加我吧。
Wx: Lxp911221
用户自己配置:
code -> 首选项 -> 设置 ->用户设置
// 将设置放入此文件中以覆盖默认设置
{
"python.pythonPath": "/usr/local/Cellar/python3/3.6.1", //配置自己python路径
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": false,
//"python.linting.pylintArgs": ["--disable-msg=C0103"],
"python.formatting.provider": "yapf"
}
下图是下载vs code 插件的地方,圆形处输入Python,安装插件
shift +command +b 编辑要执行的命令,如下:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "/usr/local/Cellar/python3/3.6.1/bin/python3.6",
"isShellCommand": true,
"args": ["/Users/sh-lx/PycharmProjects/tensorApi/tensorflow_test1.py"],
"showOutput": "always"
}
如果比较懒,直接右击,run python file in Terminal 选项
根本没有必要配置吗(: