2009-08-13から1日間の記事一覧

英語で一致する withです。

3行目の数字はほかのデータと一致する。 The figure in line three corresponds with the other data.

英語で再現する。

The researchers couldn't replicate the results of their first experiment. その研究者たちは、最初の実験の結果を再現できなかった。

rubyのbreakはループを抜ける。

rubyのbreakは内側のループを 抜けられる。

記録

8/13 321

split関数

rubyのStringクラスのsplit関数 (String#splitを書くそうだ..。) セパレートした文字列を区切る関数カンマ区切りでは a="1,2,3,4,5" b=a.split(/\s*,\s*/) puts b[3] 関数内の正規表現の部分は、\sが空白文字。[ \t\n\r\f] と同じ。 「コメジルシ」が0回以上…