x=3;
case x
  when 1..2
    print "x=",x,"在1..2中";
  when 4..9,0
    print "x=",x,"在4..9,0中或者是0";
  else
    print "x=",x,"其他可能";
  end;
评论
发表评论

您还没有登录,请登录后发表评论

weiweichen1985
搜索本博客
我的相册
E6c390da-d0cb-3350-97d4-83ec6586912c-thumb
2008-6-26
共 122 张
存档
最新评论