控制台程序点击输入回车执行任务 Console.WriteLine("请输入管道并发数:"); if (int.TryParse(Console.ReadLine(), out int max)) { }