C#占位符
可以識別字符串中占位符的函數Console.WriteLine()和string.Format()
public static void Main(){int a = 5;string b = "6";string c = "{0}和{1}";Console.WriteLine(c,a,b);string d= string.Format(c,a,b);Console.WriteLine(d);Console.ReadKey();}轉載于:https://www.cnblogs.com/wllhq/p/4634420.html
總結
- 上一篇: 随机生成器、thread(暂停)、清屏定
- 下一篇: c# char unsigned_dll