string str="hello"; Console.WriteLine("{0} world!",str); {0}就是个占位符,变量名按顺序写在后面就行。
string str="hello"; Console.WriteLine("{0} world!",str);
没太看明白,变量需要用占位符替换。。。
111,125
社区成员
642,540
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧