摘要: Console.WriteLine("请输入截止数字?退出请输入y"); string input = Console.ReadLine(); int n = Convert.ToInt32(input); int count = 0; //计数 for (int i = 0; i <= n; i++) { string str = i.ToString();//要匹配的字符串 string patte... 阅读全文