如何在VisualStudio中运行一行python代码并在终端中获得输出?

如何在VisualStudio中运行一行python代码并在终端中获得输出?,python,Python,我有一个python代码“abc.py”,它有以下两行输入: ALPHA = str(input("ENTER THE ALPHABET(A,B,C,D): ")) #A BETA = int(input("ENTER THE DIGIT: ")) #3 print(ALPHA) print(BETA) 在VisualStudio中,当我完全运行此代码时,它会在终端中请求输入并执行 但是,当我尝试逐行运行代码时,我无法执行,它会给出以下错误: in

我有一个python代码“abc.py”,它有以下两行输入:

ALPHA = str(input("ENTER THE ALPHABET(A,B,C,D): "))  #A
BETA  = int(input("ENTER THE DIGIT: ")) #3

print(ALPHA)
print(BETA)
在VisualStudio中,当我完全运行此代码时,它会在终端中请求输入并执行

但是,当我尝试逐行运行代码时,我无法执行,它会给出以下错误:

input : The term 'input' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name,   
or if a path was included, verify that the path is correct and try again.
如何逐行运行代码并在终端/输出窗口中获取“打印”的输出

我不想每次都运行整个代码来获得输出

当前,我的终端中的路径提示显示如下。它还应该有python吗

PS C:\User\ABC\Desktop\test>

您可以输入python来运行一行python代码