【发布时间】:2020-02-21 17:23:16
【问题描述】:
我很了解线程How to execute Python code from within Visual Studio Code
但它们都没有显示如何让 >>> python shell 与导入的文件一起运行。因为我想单独调用函数。
我知道我可以通过在终端中简单地输入python 来启动python shell,但是python文件中的函数每次都必须手动导入。
有没有办法像在 IDLE 中一样在 VSCode 中运行文件?
【问题讨论】:
标签: python visual-studio-code python-idle