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

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " We need the random library for the randint() function, which returns a random integer in the provided range."

A block of code is set as follows:

def fractal_tree(b_len,t):
    if b_len > 5:
        temp=random.randint(1, b_len)
        temp_angle = random.randint(1, 25)
        t.forward(temp)
        t.right(temp_angle)
        fractal_tree(b_len-10,t)
        t.left(2 * temp_angle)
        fractal_tree(b_len-10,t)
        t.right(temp_angle)
        t.backward(temp)

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

pi@raspberrypi ~ $ mkdir book
pi@raspberrypi ~ $ cd book
pi@raspberrypi ~/book $ pwd
/home/pi/book
pi@raspberrypi ~/book $ 

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: " Check out the Product page of Raspberry Pi at

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 余干县| 青河县| 蒙山县| 土默特左旗| 贡觉县| 青州市| 马关县| 安丘市| 舒城县| 文水县| 阆中市| 鄱阳县| 峡江县| 密云县| 镇坪县| 霸州市| 都江堰市| 云南省| 长寿区| 阳江市| 澄江县| 湘潭市| 石泉县| 轮台县| 土默特右旗| 新源县| 富蕴县| 固镇县| 沭阳县| 安阳县| 集安市| 凤翔县| 巴南区| 民县| 莱阳市| 磴口县| 黄冈市| 嘉荫县| 嵩明县| 宣化县| 岫岩|