- Building Python Real:Time Applications with Storm
- Kartik Bhatnagar Barry Hart
- 205字
- 2021-07-30 10:10:08
Conventions
In this book, you will find a number of styles of text 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: "Storm configurations can be done using storm.yaml
, which is present in the conf
folder".
A block of code is set as follows:
import nltk.corpus from petrel import storm from petrel.emitter import BasicBolt class SplitSentenceBolt(BasicBolt): def __init__(self): super(SplitSentenceBolt, self).__init__(script=__file__) self.stop = set(nltk.corpus.stopwords.words('english')) self.stop.update(['http', 'https', 'rt'])
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
import logging
from collections import defaultdict
from petrel import storm
from petrel.emitter import BasicBolt
Any command-line input or output is written as follows:
tail -f petrel24748_totalrankings.log
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Finally, click on Create your Twitter application".
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- Vue 3移動Web開發(fā)與性能調優(yōu)實戰(zhàn)
- SQL Server 從入門到項目實踐(超值版)
- Android Wearable Programming
- Python程序設計教程(第2版)
- Computer Vision for the Web
- Python程序設計案例教程
- 概率成形編碼調制技術理論及應用
- MongoDB權威指南(第3版)
- “笨辦法”學C語言
- Hands-On Neural Network Programming with C#
- ABAQUS6.14中文版有限元分析與實例詳解
- Java EE 8 and Angular
- Python 3快速入門與實戰(zhàn)
- Android編程權威指南(第4版)