Python VSCode 配置固定的脚本入口

Python VSCode 配置固定的脚本入口

打开或者新建一个启动配置

选择 .vscode目录下 launch.json文件

将 "program": "${file}" 替换成

"program": "mian.py", //完成你自己的入口.py文件名即可

json启动配置文件

javascript 复制代码
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: main.py",
            "type": "python",
            "request": "launch",
            // "program": "${file}",
            "program": "mian.py",
            "console": "integratedTerminal",
            "justMyCode": true
        }
    ]
}
相关推荐
RSABLOCKCHAIN7 小时前
AI Agents in LangGraph-2
人工智能·python
WA内核拾荒者8 小时前
WhatsApp 账号异常检测的自动化告警系统设计
数据库·python·自动化
码流怪侠9 小时前
【GitHub】Bend:让 GPU 并行编程像写 Python 一样简单
python·github
魔力女仆9 小时前
分享一个 JS 鼠标跟随贪吃蛇背景库
开发语言·javascript·计算机外设
2401_8949155310 小时前
GEO 搜索优化完整源码从零部署:环境配置、集群搭建全流程
开发语言·python·tcp/ip·算法·unity
麻瓜老宋10 小时前
AI开发C语言应用按步走,表达式计算器calc的第二十二步,分号赋值链式修复、TOKEN_ASSIGN
c语言·开发语言·atomcode
zhiSiBuYu051711 小时前
Python3 模块开发与应用实战指南
python
颜x小12 小时前
[C#] C++与c#语法对比
开发语言·c++·c#
databook12 小时前
用方差阈值过滤掉“惰性特征”
python·机器学习·scikit-learn