【发布时间】:2016-08-24 00:14:42
【问题描述】:
以下 python 代码在 Visual Studio 和 Python IDLE 中运行良好。但是当我用 VISUAL STUDIO CODE 编写它时,输入值之后的所有 4 个打印命令都没有被处理。
print ('hello world')
print ('hello world')
message = raw_input ('type message ')
print ('message')
print ('statement 1')
print ('statement 2')
print ('statement 3')
print ('statement 4')
例如,当我用“我的消息”填写输入时,它只会打印:
hello world
hello world
type message
my message
并且不执行输入之后的 4 个打印命令。 预期的输出是:
hello world
hello world
type message
my message
statement 1
statement 2
statement 3
statement 4
知道为什么 Visual Studio Code 不处理剩余的 4 个打印命令吗?
【问题讨论】: