📌  相关文章
📜  如何在 Scala 中获取用户输入 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:42.690000             🧑  作者: Mango

代码示例1
/*
This is for SCALA!

Anyways, lets say you want to get the user's name. How will you get it? 
This is how you will do it:
*/
var name: String = ""
name= readLine("What's your name?") //getting the input!

println("Hello, "+name)