Adding Quotes in Swift

后端 未结 3 629
情深已故
情深已故 2021-01-07 19:02

Is there a straightforward way in Swift for adding quotation marks to a String? The quotation marks should localize properly (see https://en.wikipedia.org/w

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-07 19:38

    let quote = "\"To be or not to be...\""
    println(quote)
    

    output Will be: "To be or not to be..."

提交回复
热议问题