// 4.基本数据类型
// Int Float Double Charactor String
var height : Float = 1.67
print(height)
var number1 : Double = 2.33
var sum1 : Double
//强转 数据类型(变量)
sum1 = Double(height) + number1
print(Int(sum1))
原文链接:https://www.f2er.com/swift/325724.html