2003-07-23から1日間の記事一覧
#! ruby def fibUpTo(max) a,b = 1,1 while a #! python from __future__ import generators def fibGenerator(num): a,b = 1,1 while a class Fib: def __init__(self, max_num=0) self.max_num = max_num self.i = 1 self.num = 0 def __iter__ (self): re…