首页 > 解决方案 > python :- sublime 中用户问题的输入

问题描述

我正在用 sublime 编写 python 代码(版本是最新的)。但是,当我尝试从用户那里输入一个值时,它只会获取该值并且什么都不做。

这是一个简单的例子,

name = input('Please enter your name: ')
print('Hello ' + name + '!' )

输出画面

Please enter your name:  xyz

_ <-- after that cursor blinks here and nothing happens

标签: pythonsublimetext3

解决方案


推荐阅读