📜  如何在swift代码示例中命名特定类型的变量

📅  最后修改于: 2022-03-11 15:01:02.929000             🧑  作者: Mango

代码示例1
var myString: String = "this is a string"
var myInt: Int = 123
var myDouble: Double = 3.1415 // 64-bit 
var myFloat: Float = 3.14 // 32-bit
var myArray: [Int] = [3, 54, 12, 0] // can change to any other [type]