摘要:
20.1Time类 ,Data类 Time.now或者Time.new:获取当前时间。 相关Method: year, month, hour, min ,sec, wday: 一周中的第几天,返回整数。(0表示星期天) mday: the day in a month yday: the day 阅读全文
摘要:
第12章 数值类 12.1 数值的构成 Numeric-> Integer-> Fixnum,Bignum(非常大的整数) -> Float -> Rational (rational thoughts, decisions etc are based on reasons rather than 阅读全文
摘要:
第一章 排序 1. 桶算法(简单): 缺点:太占空间,只能对数本身排序,无用。 C: int a[11], i,j,t; for (i= 0;i <= 0; i++){ ... } ruby: For ... In 本质上for...in是语法糖,ruby translates it into sh 阅读全文