2006年8月29日
摘要: 碰巧用到,记录一下:using System.Globalization;using System.Threading;CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture;TextInfo textInfo = cultureInfo.TextInfo;Console.WriteLine(textInfo.ToTitleC... 阅读全文
posted @ 2006-08-29 17:51 JIN Weijie 阅读(754) 评论(0) 推荐(0) 编辑
摘要: Ruby是门好语言,使得编程变得非常优雅下面一个例子很好体现了这点: 很简单地实现了Fibonacci函数def fib_up_to(max) i1, i2 = 1, 1 while i1 输出:1 1 2 3 5 8 13 21 34 55 89 ... 阅读全文
posted @ 2006-08-29 11:12 JIN Weijie 阅读(210) 评论(0) 推荐(0) 编辑