详解Ruby中的循环语句的用法

2019-09-25 09:45:04于海丽

这将产生以下结果,并会进入一个无限循环:

Value of local variable is 1
Value of local variable is 2
Value of local variable is 1
Value of local variable is 2
Value of local variable is 1
Value of local variable is 2
............................