- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 57字
- 2021-07-02 23:54:25
String interpolation
String interpolation is a way to construct a new String value from a mix of constants, variables, literals, and expressions by including their values inside a String literal. Consider the following example:
let multiplier = 3
let message = "\(multiplier) times 7.5 is \(Double (multiplier) * 7.5)"
// message is "3 times 2.5 is 22.5"
推薦閱讀
- 數據產品經理高效學習手冊:產品設計、技術常識與機器學習
- 數據之巔:數據的本質與未來
- UDK iOS Game Development Beginner's Guide
- Python數據分析:基于Plotly的動態可視化繪圖
- 數據驅動:從方法到實踐
- Python醫學數據分析入門
- 數據庫原理與應用(Oracle版)
- The Game Jam Survival Guide
- 大數據治理與安全:從理論到開源實踐
- 數據科學實戰指南
- 探索新型智庫發展之路:藍迪國際智庫報告·2015(下冊)
- Solaris操作系統原理實驗教程
- Google Cloud Platform for Developers
- 區域云計算和大數據產業發展:浙江樣板
- 企業大數據處理:Spark、Druid、Flume與Kafka應用實踐