📜  dart 从用户那里获取字符串输入 - Dart 代码示例

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

代码示例1
import 'dart:io'; 
  
void main() 
{ 
    print("Enter your name?"); 
    // Reading name of the Geek 
    String name = stdin.readLineSync(); 
  
    // Printing the name 
    print("Hello, $name! \nWelcome to GeeksforGeeks!!"); 
}