字符串的操作
字符串的拼接
("hello world") (变量+"world")
console.write("hello world")
string name ="11";
console.write(name+"world")
string message = "My nmae is{0} .I am {1} Years old.",name,age;
string message = "My nmae is{0} .I am {1} Years old.";
string output = string.Format(message,name ,age);
console.writeline(output);
string message = $"My nmae is{name} .I am {age} Years old.;
注意事项
...