摘要: string.Format("{0,-50}", theObj);//格式化成50个字符,原字符左对齐,不足则补空格 string.Format("{0,50}", theObj);//格式化成50个字符,原字符右对齐,不足则补空格 Console.WriteLine("{0} with{1,11} 阅读全文
posted @ 2022-01-20 14:19 江境纣州 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 1、实现 static void Main(string[] args) { Thread thread = new Thread(PrintNumbers); thread.Start(); PrintNumbers(); Console.Read(); } static void PrintNu 阅读全文
posted @ 2022-01-20 11:32 江境纣州 阅读(21) 评论(0) 推荐(0) 编辑