ruby的循环有以下几种:
times方法 for语句 while语句 until语句(与while相反)
each方法(与for极度相似,在ruby内部,for语句是用each实现的) loop方法(无限循环,与break搭档)