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

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: "The asyncio module provides a number of different transport classes."

A block of code is set as follows:

async def main(url):
async with aiohttp.ClientSession() as session:
await download_html(session, url)

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

urls = [
'http://packtpub.com',
'http://python.org',
'http://docs.python.org/3/library/asyncio',
'http://aiohttp.readthedocs.io',
'http://google.com'
]

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

> python3 example5.py
Took 0.72 seconds.

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: "To download the repository, simply click on the Clone or download button in the top-right corner of your window."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 宁国市| 博野县| 阿图什市| 辽中县| 雅安市| 共和县| 井陉县| 和平区| 剑川县| 巫山县| 高陵县| 弥渡县| 繁昌县| 金堂县| 旬邑县| 沅江市| 梨树县| 宁海县| 读书| 栾城县| 二连浩特市| 宣化县| 嘉荫县| 桦南县| 邯郸县| 晋州市| 博客| 三穗县| 会理县| 宾阳县| 琼海市| 江油市| 天津市| 平安县| 成都市| 靖安县| 永德县| 桐柏县| 沿河| 六盘水市| 宿松县|