python - 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
解决方案
推荐阅读
- javascript - 从输入中获取值并将其转换为百分比值以用于绘图饼图中
- python-3.x - TclError:图像“pyimage3”不存在(仅在第一次运行时有效)
- php - Laravel API 控制器 | 如何在控制器的这种“更新”方法中散列密码?
- java - Android 如何使用 SimpleDateFormat 添加新日期
- laravel - 如何在 laravel 的同一页面中显示下拉选择的值?
- r - 使用 slice() 作为 [] 的替代方法
- python - 如何在 django 3.0.7 和 django-allauth 0.43.0 中覆盖 django-allauth 模板
- html - 屏幕分辨率会影响我网站元素的大小吗?
- javascript - React 中的 onClick 和 onBlur 问题
- r - 在 R 中将日期和时间分成两列,并根据一天中的时间汇总行