【发布时间】:2022-01-18 22:21:45
【问题描述】:
我在 Windows 10 机器上使用 Visual Studio Code:
这是我的代码:
import sys
if __name__ == "__main__":
print(sys.argv[0])
print(sys.argv[1])
当我执行它时,在终端窗口中通过传递一个参数:
c:; cd 'folder_path\code'; & 'folder_path\python3.9.exe' 'folder_path\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\lib\python\debugpy\launcher' '58259' '--' 'folder_path\code\cmd_line.py' test
我收到一个错误
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
【问题讨论】:
-
那是调试连接问题
标签: python python-3.x visual-studio-code