首页 > 代码库 > swift switch Double

swift switch Double

var v =0.5;

switch v{

case0...1:

   println("0...1");

default:

   println("区间外");

}

swift switch Double