官术网_书友最值得收藏!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "This code creates a place in the memory, called text, where we store the text, Hello world!."

A block of code is set as follows:

func generateGreeting(greet:String, thing:String = "world") -> String {
return greet + thing + "!"
}
print(generateGreeting(greet: "Hello "))
print(generateGreeting(greet: "Hello ", thing: " Swift 4"))

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

let number = 5
let pisor = 3
let remainder = number % pisor //remainder is again integer
let quotient = number / pisor // quotient is again integer

Any command-line input or output is written as follows:

swift package init --type library

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Also, add an action to the Sign In With Email button."

Warnings or important notes appear like this.

Tips and tricks appear like this.

主站蜘蛛池模板: 丰镇市| 安仁县| 阿拉善左旗| 佛学| 北京市| 三穗县| 衡阳市| 长春市| 浠水县| 庐江县| 东海县| 拉萨市| 房产| 瓦房店市| 达孜县| 响水县| 巧家县| 澎湖县| 行唐县| 天祝| 农安县| 隆尧县| 大石桥市| 普兰店市| 陵水| 佛坪县| 渝北区| 三门峡市| 武城县| 宁阳县| 万荣县| 甘肃省| 麻城市| 桐乡市| 西昌市| 嘉兴市| 泾川县| 防城港市| 苏州市| 景泰县| 咸宁市|