# !/usr/bin/ruby -w # -*- encoding:utf-8 -*- # filename: main.rb # author: 简单教程(www.twle.cn) # Copyright © 2015-2065 www.twle.cn. All rights reserved. i = 1 while i < 5 do puts("在 while 循环语句中 i = #{i}" ) i +=1 end