kotlin - Why IntelliJIDEA Kotlin doesn't take input from readLine() when running the main file in Console Application?
问题描述
Taking input as commandline works fine though!
It seems i need to enter twice to get an input. Cant seem to understand why?
解决方案
我想出的最佳答案是 IntelliJ 内部控制台中的错误:be 发生了同样的事情,当我在旧版本中运行它时它工作正常
推荐阅读
- react-native - React Native 有条件地设置状态
- javascript - 将 jinja2 模板代码添加到 javascript innerHTML
- c++ - constexpr 使用标准库算法
- java - 遍历 Java 中的 autobox 类型列表
- ios - 如何限制对数据库的请求数
- c - 如何使这个依赖嵌套的并行版本,以及为什么崩溃不起作用
- angular - 如何在 Nx 中配置动态别名路径?
- java - 如何在数组中创建搜索方法
- python-3.x - 我想使用 Selenium 和 Python 打开一个特定的 Chrome 配置文件
- node.js - 如果浏览器地址包含请求地址中的“www”,则 Cookie 不包含在请求标头中