您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

vscode怎么运行.py文件

2024/6/17 18:02:34发布26次查看
通过vscode执行python程序的方法:
先配置 tasks.json : 
使用快捷键“ ctrl+shifit+p”打开搜索栏。输入 “tasks: configure task runner”打开tasks.json
{ "version": "0.1.0", // the command is tsc. assumes that tsc has been installed using npm install -g typescript "command": "c:/python27/python.exe", // the command is a shell script "isshellcommand": true, // show the output window only if unrecognized errors occur. "showoutput": "always", // args is the helloworld program to compile. "args": ["${file}"]}
配置完成后使用快捷键“ctrl+shift+b”即可运行.py文件。
相关文章教程推荐:vscode教程
以上就是vscode怎么运行.py文件的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product