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

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: "While assigning the value to the weight variable, we didn't specify the data type, but the Python interpreter assigned it as an integer type, int."

A block of code is set as follows:

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.
 */

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}

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

$ sudo easy_install pip

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: "In the System window, click on the Advanced system settings in the left navigation bar to open a window called System Properties."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 蕲春县| 边坝县| 芮城县| 抚州市| 郴州市| 济阳县| 余干县| 华安县| 阳城县| 伊吾县| 淮阳县| 阿荣旗| 荣昌县| 东乌珠穆沁旗| 南乐县| 闽清县| 平泉县| 资中县| 鄂托克前旗| 合江县| 土默特右旗| 玛沁县| 仙居县| 宁南县| 灌云县| 琼结县| 蓝山县| 裕民县| 凌海市| 宣城市| 内江市| 清涧县| 海林市| 福鼎市| 于都县| 渝北区| 昂仁县| 弥勒县| 瑞丽市| 丰顺县| 长泰县|