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

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.
主站蜘蛛池模板: 沾化县| 安多县| 轮台县| 漯河市| 安多县| 龙川县| 威信县| 资源县| 宜昌市| 三门峡市| 陆丰市| 柳江县| 泸溪县| 柘城县| 抚州市| 个旧市| 大田县| 新竹市| 德江县| 韶山市| 闽侯县| 宁夏| 肇州县| 马龙县| 赣州市| 临泽县| 兖州市| 嘉峪关市| 徐汇区| 望城县| 徐水县| 濉溪县| 凌云县| 安塞县| 伊宁市| 宁强县| 金昌市| 石楼县| 古丈县| 美姑县| 武山县|