Cel*_*aro 1 python python-3.x visual-studio-code
所以我一直在网上试图找到如何在visual studio代码上使用python 3编译我的python程序.但是,似乎他们没有太多关于如何做的信息.下面是我的task.json文件的样子.我在做什么吗?
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "Python",
"isShellCommand": true,
"args": ["${file}"],
"showOutput": "always"
}
Run Code Online (Sandbox Code Playgroud)
任何建议都会非常感谢你
在VSCode中,您需要指定要用于使用特定Python版本运行的工作区.
按"Ctrl + Shift + P"并键入"Interpreter"并选择"Python:Select Workspace Interpreter"

这将列出您计算机上安装的不同版本.选择你想要的.

| 归档时间: |
|
| 查看次数: |
2253 次 |
| 最近记录: |