摘要: puts "Mary had a little lamb. "puts "It's fleese was white as #{'snow'}."puts "And everywhere that Mary went."puts "." * 10 # what'd that do?end1 = "C... 阅读全文
posted @ 2014-09-01 20:53 SchrodingerCat 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 英文版:http://ruby.learncodethehardway.org/book/繁体版:http://lrthw.github.io/(繁体+英文-》简体)现在添加一批练习,在练习过程中写代码,并让你的代码运行起来。这里不会有很多详细的解释,因为大部分都是以前的内容。这次练习的目的是为了巩... 阅读全文
posted @ 2014-09-01 17:16 SchrodingerCat 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 源码ex6-2.rb :types_of_people = 10x = "There are #{types_of_people} types of people." binary = "binary"do_not = "don't"y = "Those who know '#{binary}... 阅读全文
posted @ 2014-09-01 16:47 SchrodingerCat 阅读(125) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-09-01 14:24 SchrodingerCat 阅读(7) 评论(0) 推荐(0) 编辑