摘要:
书中源码是这样的File.foreach('1.txt') do |x| if(($. == 1) || x =~ /eig/) .. (($. == 3) || x =~ /nin/) then print x endend其中 1.txt内容如下firstsecondthirdfour... 阅读全文
posted @ 2015-04-22 12:25
c3tc3tc3t
阅读(297)
评论(0)
推荐(0)
摘要:
putstrueandfalse#相当于(putstrue)andfalseUse &&/|| for boolean expressions, and/or for control flow. (Rule of thumb: If you have to use outer parentheses... 阅读全文
posted @ 2015-04-22 09:24
c3tc3tc3t
阅读(257)
评论(0)
推荐(0)
浙公网安备 33010602011771号