- Python 3 Object:oriented Programming(Second Edition)
- Dusty Phillips
- 249字
- 2021-07-16 20:44:27
Conventions
This book uses a variety of text styles to 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: "We look up the class in the dictionary and store it in a variable named PropertyClass
."
A block of code is set as follows:
def add_property(self): property_type = get_valid_input( "What type of property? ", ("house", "apartment")).lower() payment_type = get_valid_input( "What payment type? ", ("purchase", "rental")).lower()
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 add_property(self): property_type = get_valid_input( "What type of property? ", ("house", "apartment")).lower() payment_type = get_valid_input( "What payment type? ", ("purchase", "rental")).lower()
Any command-line input or output is written as follows:
>>> c1 = Contact("John A", "johna@example.net") >>> c2 = Contact("John B", "johnb@example.net") >>> c3 = Contact("Jenna C", "jennac@example.net") >>> [c.name for c in Contact.all_contacts.search('John')] ['John A', 'John B']
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: "It will fail with a not enough arguments error similar to the one we received earlier when we forgot the self
argument."
- Learning LibGDX Game Development(Second Edition)
- 從零構建知識圖譜:技術、方法與案例
- 解構產品經理:互聯網產品策劃入門寶典
- MongoDB for Java Developers
- Python語言程序設計
- 我的第一本算法書
- Production Ready OpenStack:Recipes for Successful Environments
- Python高級機器學習
- 深入理解Elasticsearch(原書第3版)
- Java:High-Performance Apps with Java 9
- Python編程從0到1(視頻教學版)
- Microsoft Azure Storage Essentials
- 超簡單:用Python讓Excel飛起來(實戰150例)
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復雜圖像數據
- WordPress Search Engine Optimization(Second Edition)