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

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: "To use the Python Terminal, simply type the python3 command in your Terminal prompt."

A block of code is set as follows:

a=44
b=33

if a > b:
print("a is greater")
print("End")

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

my_list=[1,"a",[1,2,3],{"k1":"v1"}]
my_list[0] -> 1
my_List[1]
-> "a"
my_list[2]
-> [1,2,3]
my_list[2][0]
-> 1
my_list[2][2]
-> 3
my_list[3]
-> {"k1":"v1"}
my_list[3]["k1"]
-> "v1"
my_list[3].get("k1")
-> "v1

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

import threading
>>> class a(threading.Thread):
... def __init__(self):
... threading.Thread.__init__(self)
... def run(self):
... print("Thread started")
...

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Click on the Start Crawling button."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 乳山市| 津南区| 安远县| 卓资县| 保定市| 青海省| 山丹县| 南丹县| 乾安县| 尼玛县| 平和县| 台湾省| 寿光市| 香格里拉县| 邛崃市| 沁源县| 唐河县| 耿马| 蒙阴县| 灵山县| 平湖市| 海口市| 洛隆县| 西乌珠穆沁旗| 天津市| 阿荣旗| 西盟| 广丰县| 新宁县| 灵川县| 龙川县| 信丰县| 大洼县| 庆安县| 五大连池市| 巢湖市| 抚顺市| 花莲市| 伊吾县| 南丰县| 二连浩特市|