小编bha*_*anu的帖子

Visual Studio Code - Python 中的输入函数

我正在尝试 Visual Studio Code 来学习 Python。

我正在编写一段起始代码来获取用户的输入,例如:

S = input("What's your name? ")
Run Code Online (Sandbox Code Playgroud)

当我尝试运行这个 (Mac: Cmd+ Shift+ B) 时,我看到任务正在运行而没有输出。我已经为输出和参数配置了 tasks.json 文件。

print("Hello, World!")
S = input("What's your name? ")
Run Code Online (Sandbox Code Playgroud)

我需要在 Visual Studio Code 中配置一些环境变量吗?

python visual-studio-code

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

python ×1

visual-studio-code ×1