标签:
var v = 0.5;
switch v{
case 0...1:
println("0...1");
default:
println("区间外");
}
swift switch Double
原文地址:http://blog.csdn.net/crazyeveryday/article/details/46596581