📜  将变量插入字符串 C# 代码示例

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

代码示例2
// For Console.WriteLine() and Console.Write() do...

string var0 = "one";
string var1 = "two";
Console.WriteLine("{0} and {1}", var0, var1);

/* Outputs:

one and two