- Learning Python for Forensics
- Preston Miller Chapin Bryce
- 260字
- 2021-07-02 16:41:07
Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code, variables, function names, URLs, or other keywords are written in a specific font, for example
. Variables are lower case with underscores separating words. Functions or class names are follow the CamelCase convention (for example, processData
) where the first word is lowercase and any following word is capitalized. Function, method, or class names will also by followed by a pair of parenthesis to logically separate them from variables. We will display all code meant for the Python interactive prompt or in a file.
A block code written in the interactive prompt is preceded by three ">" or "." symbols emulating what a user would see when typing the data into the interactive prompt.
Python Interactive Prompt Code >>> a = 5 >>> b = 7 >>> print a + b 13
A block of code written in a file will contain a line number on the left side of the file followed by the code on that line. Indentation is important in Python and all indents should be at increments of 4 spaces. Lines may wrap due to margin lengths. Please refer to the provided code for clarification on indentations and layout.
Python Script 001 def main(): 002 a = 5 003 b = 7 004 print a + b
- Java 開發從入門到精通(第2版)
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- 前端跨界開發指南:JavaScript工具庫原理解析與實戰
- 人臉識別原理及算法:動態人臉識別系統研究
- HTML5 APP開發從入門到精通(微課精編版)
- 微服務從小白到專家:Spring Cloud和Kubernetes實戰
- OpenCV with Python By Example
- Python入門很輕松(微課超值版)
- Python網絡爬蟲技術與應用
- Python青少年趣味編程
- Application Development with Parse using iOS SDK
- Python面向對象編程(第4版)
- Learning Scrapy
- Web前端開發全程實戰:HTML5+CSS3+JavaScript+jQuery+Bootstrap
- C++游戲設計案例教程