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

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.
主站蜘蛛池模板: 祁阳县| 静安区| 新乡市| 富阳市| 和政县| 南平市| 昌江| 淮南市| 萨迦县| 屯门区| 大余县| 海淀区| 高尔夫| 蒙城县| 彭山县| 元谋县| 大理市| 大理市| 彭山县| 张家界市| 昌都县| 德州市| 齐齐哈尔市| 云霄县| 连江县| 安国市| 延吉市| 台安县| 清新县| 闸北区| 和硕县| 高密市| 大城县| 井研县| 密山市| 汉源县| 响水县| 绿春县| 高要市| 乐亭县| 仙桃市|