C# 字符串格式化

string name = "Jerry";
string welcome = "welcome to C#";
string result = string.Format("Hello {0}, {1}", name, welcome);
Console.WriteLine(result);

 

posted @ 2026-08-04 17:25  liliyou  阅读(3)  评论(0)    收藏  举报