- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- string a = "张三";
- string b = "李四";
- string c = string.Format("{0}和{1}是同学", a, b);
- Console.WriteLine(c);
- Console.ReadKey();
- }
- }
- }
复制代码 |