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

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 method will call the method exec of the Runner to execute the function that performs the requests to the Twitter API."

A block of code is set as follows:

def set_header(self):
title = Label(self,
text='Voting for hasthags',
font=("Helvetica", 24),
height=4)
title.pack()

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

def start_app(args):
root = Tk()
app = Application(hashtags=args.hashtags, master=root)
app.master.title("Twitter votes")
app.master.geometry("400x700+100+100")
app.mainloop()

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

python app.py --hashtags debian ubuntu arch

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: "It says, Logged as with your username, and right after it there is a logout link. Give it a go, and click on the link Log off"

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 平昌县| 班玛县| 泸州市| 依兰县| 滦南县| 探索| 乌兰察布市| 黔东| 高清| 合水县| 柳江县| 明水县| 大名县| 习水县| 鄂尔多斯市| 顺义区| 凤庆县| 武宣县| 萝北县| 中西区| 荆州市| 河西区| 无极县| 大田县| 镇安县| 墨竹工卡县| 恩施市| 南丹县| 甘谷县| 盐池县| 车致| 宁晋县| 庆元县| 四川省| 永州市| 巧家县| 融水| 成安县| 迁西县| 天水市| 南华县|