自由的力量,自由的生活。
histogram = Hash.new(0) ##给hash表设置默然值为0 histogram['key1'] histogram['key1'] = histogram['key1'] + 1 histogram['key1']########################################gets 从命令行出入的文件名得到的文件的每一行文本。while line = gets puts line.downcase ##downcase全部转换成小写end
Copyright @ ivaneeo Powered by: .Text and ASP.NET Theme by: .NET Monster