日期:2014-05-17  浏览次数:20922 次

Console.WriteLine中{0}处理
string str = "hello";
Console.WriteLine{“{0}”,i};//输出hello

假如我想输出"hello {0}"
怎么办

------解决方案--------------------
string str = "hello";
Console.WriteLine("{0}{1}", str, "{0}");//输出hello{0}