当前位置:网站首页>【VSCODE】当前工作目录非当前文件夹/pathlib打印cwd路径错误
【VSCODE】当前工作目录非当前文件夹/pathlib打印cwd路径错误
2022-07-23 02:50:00 【算法与编程之美】
问题
【VSCODE】当前工作目录非当前文件夹/pathlib打印cwd路径错误
方法
修改.vscode/launch.json文件,文件末尾增加cwd一行,如下:
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${fileDirname}"
}
]
}
边栏推荐
- args参数解析
- 华泰证劵开户有骗局吗安全吗
- [notes on the practice of node middle tier (I)] -- building the project framework
- 【学习笔记】Node--从0基础到实战企业官网
- 现在去哪里开期货户,最安全,手续费最低?
- CMake入门教程
- 华泰证券开户安全性高吗,怎么办理
- Can Huatai Securities open an account by itself? Is it safe? How long will it take to finish
- 卡特兰数---
- How to deal with the computer pressing keys all the time
猜你喜欢

关于RapidSSL证书

可视化全链路日志追踪

I changed my career as a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings

spark分区算子partitionBy、coalesce、repartition

【C语言对链表的操作(链表的初始化,建立,求长,增加,删除,以及输出)】

十年磨一剑,云原生分布式数据库PolarDB-X的核心技术演化

141.环形链表

拓扑排序 & 关键路径

seatunnel 架构

Interviewer: explain the core principle of ThreadLocal
随机推荐
《nlp入门+实战:第一章:深度学习和神经网络》
PHP RSA 生成公钥私钥 PSA2 加密解密
零基础怎么学习单片机?
Excel简单使用宏
广发期货是什么级别?开户安全可靠吗?
2022年了,软件测试这个行业还吃香么?
Ten years of sharpening a sword, the core technology evolution of the cloud native distributed database polardb-x
pycharm安装库的时候报错Try to run this command from the system terminal. Make sure that you use the correct
笔记——记录一个dynamic-datasource please check the setting of primary 问题解决
清华、AIR、腾讯 | 3D等变分子图预训练
南京银行提前批金融科技岗
Spark 内存管理机制 新版
【南瓜书ML】(task3)决策树(更新ing)
7月排行榜新看点?这个语言无敌了?
数组中的逆序对
three文档使用
线程池面试
Several important problems of port completion
How is it safe to open an account for Haitong Securities' exchange fund
Burpsuite 插件的学习与使用