📜  在 swift 代码示例中声明空字符串

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

代码示例1
// Create a literal empty string
var emptyString = ""

// Create an optional string
var emptyVariable: String?  // This allows this variable to have a null value, or nil in swift