var point = (2,17)
switch point {
//case (var x,17):
// print("x = \(x)")
case (var x,var y):
print("x = \(x),y = \(y)")
//default: break
}
var point = (2,17)
switch point {
//case (var x,17):
// print("x = \(x)")
case (var x,var y):
print("x = \(x),y = \(y)")
//default: break
}
转载于:https://www.cnblogs.com/skyPeat/p/6554467.html