static void indent(string text, int indentLevel) { for (int i = 0; i < indentLevel; i++) { Console.Write(" "); } Console.WriteLine(text.Substring(0, Math.Min(79 - indentLevel * 2, text.Length))); }
posted on 2015-07-13 10:01 C-x-C 阅读(793) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 C-x-C Powered by .NET 9.0 on Kubernetes