![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ruby
iteye_4801
这个作者很懒,什么都没留下…
展开
-
Ruby學習系列----疑問(1)
[code]def sayGoodnight(name) #result = "Goodnight #{name}" result = "Goodnight, " + name return resultend[/code][code]puts (sayGoodnight ("john-bo"))[/code]Goodnight, john-bo執行成功...2006-09-25 09:30:25 · 116 阅读 · 0 评论 -
Ruby學習系列----疑問(2)
[code="ruby"]class Song def initialize(name,artist,duration) @name = name @artist = artist @duration = duration end def to_s "Song : #{@name}--#{@artist} (#{@duration})" e...2006-10-26 16:59:34 · 84 阅读 · 0 评论