📜  c# 在用户输入之前写入文本 - C# 代码示例

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

代码示例1
Console.Write("Enter username: ");
string userName = Console.ReadLine();
Console.WriteLine("Username is: " + userName);
// OUTPUT:
// Enter username: example username
// Username is: example username