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

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.
主站蜘蛛池模板: 广宗县| 松江区| 建宁县| 芜湖市| 尼勒克县| 菏泽市| 陇川县| 贺兰县| 蓬莱市| 都江堰市| 泰州市| 九龙坡区| 双柏县| 喜德县| 长岛县| 永康市| 绍兴市| 安图县| 五原县| 天气| 西乡县| 辽阳县| 永平县| 莒南县| 齐河县| 涞水县| 吴川市| 衡山县| 鹤岗市| 正阳县| 天祝| 宿松县| 昌都县| 福泉市| 搜索| 晋城| 高清| 连城县| 随州市| 中江县| 黄冈市|