RSS Ask Avain Ruby
哪吒推荐该订阅
简介:... here, maybe you could find the mentors of learning ruby and rails.
原站:http://cl.itri.org.tw/~chientai/ruby
点击立即订阅,“Ask Avain Ruby”的内容有更新,哪吒第一时间提醒您
“Ask Avain Ruby”的内容更新
累计:11 篇(自 2007-04-04 起)
更新:约2篇/年,最后更新1687 天前
Ask Avain Ruby
#!/usr/bin/rubyfilename = "webx.txt" # Read the external filedestination = "attendee.unique.txt"file = open(filename) # Create the object "file"dfile = open(destination,"w+")a = []while text = file.gets do # use "gets" to the file line by line a.push(text.chomp + ",\n") # "chomp" is to cut off the \n or \renda.uniq # Returns a new array by remo... (314 天前)
Ask Avain Ruby
... (314 天前)
Ask Avain Ruby
class ABCdef name@nameenddef name=(newname)@name=newnameenddef to_sputs “overwrite”enddef initialize(name)@name=nameendendclass ABCson < ABCdef sonprintputs “son”enda1=ABC.new(”NASA”)puts a1.namea1.name=”NASA Space”puts a1.nameputs a1.to_sa_=ABCson.new()puts son_.name... (314 天前)
Ask Avain Ruby
檔案存檔時的編碼,要注意。請大家有空回去先把那個出考題的問題想想,通常分析時,需要透過情境模擬,請大家在blog上,寫一下你對於考題的情境模擬,我會在上面回說,應該要怎樣分析(責任法則)中文的問題應該是不行的,我剛才把IDE存檔的問題解決之後,發現ruby解析時,會抓到他無法解晰的token(單元符號),這就代表說中文的編碼方式,不在他的token命名方式規則中,後來想想也... (314 天前)
Ask Avain Ruby
#!/usr/bin/rubyfor i in 2..9for j in 1..9product = i*jputs i.to_s + ‘ * ‘ + j.to_s + ‘ = ‘ + product.to_sendend Result:2 * 1 = 22 * 2 = 42 * 3 = 62 * 4 = 82 * 5 = 102 * 6 = 122 * 7 = 142 * 8 = 162 [...]... (314 天前)
Ask Avain Ruby
2006-11-15 早上 6:30 Avain 的上課簡報。Programming Ruby好久沒有這麼早起床,上課。Avain 的確是與程式寫作奮戰多年的人,不管是理論、經驗都很豐富,更重要的是 Avain 了解學習者的感受與茫然的地方。上帝祝福他,這麼好的教導者不多見了。... (314 天前)
Ask Avain Ruby
「物件導向」這個名詞越來越熱門,似乎不懂它的人都好像活在上古世界一般的過時,但知其然者未必知其所以然,物件的定義為何?物件導向的設計哲學精髓為何?這些問題並非是人人都能答得上來的。這份〈物件導向的天空〉是建中學生林俊傑寫的物件導向介紹文章。真是很佩服一個高中生有這樣的功力與文筆。... (314 天前)
订阅者 ( 2 )
thor56
chientai.chen
相关订阅源
RSS cnBeta.COM

cnbeta.com - 简明it新闻,网友媒体与言论平台

标签: cnbeta cnbeta.com it news it资讯

指数 | 2286人订阅  

RSS 花儿朵朵

命运身边游,掌握靠吾手。

指数 | 1人订阅  

我要反馈