1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleApp1 8 { 9 class Program 10 { 11 static void Main(string[] args) 12 { 13 Console.WriteLine("请输入你的姓名:"); 14 String str = Console.ReadLine(); 15 16 Console.WriteLine("你的名字是{0}。" , str); 17 Console.ReadKey(); 18 19 20 21 22 } 23 } 24 }