控制台程序点击输入回车执行任务

 Console.WriteLine("请输入管道并发数:");
            if (int.TryParse(Console.ReadLine(), out int max))
            {
               
            }

原文地址:https://www.cnblogs.com/macT/p/12033509.html