- NumPy Essentials
- Leo (Liang Huan) Chin Tanmay Dutta
- 241字
- 2021-07-16 11:16:32
Code conventions used in the book
Now that the credibility of Python and NumPy has been established, let's get our hands dirty.
The default environment used for all Python code in this book will be IPython. Instructions on how to install IPython and other tools follow in the next section. Throughout the book, you will only have to enter input in either the command window or the IPython prompt. Unless otherwise specified, code
will refer to Python code, and command
will refer to bash or DOS commands.
All Python input code will be formatted in snippets like these:
In [42]: print("Hello, World!")
In [42]:
in the preceding snippet indicates that this is the 42nd input to the IPython session. Similarly, all input to the command line will be formatted as follows:
$ python hello_world.py
On Windows systems, the same command will look something like this:
C:\Users\JohnDoe> python hello_world.py
For the sake of consistency, the $
sign will be used to denote the command-line prompt, regardless of OS. Prompts, such as C:\Users\JohnDoe>
, will not appear in the book. While, conventionally, the $
sign indicates bash prompts on Unix systems, the same commands (without typing the actual dollar sign or any other character), can be used on Windows too. If, however, you are using Cygwin or Git Bash, you should be able to use Bash commands on Windows too.
Note that Git Bash is available by default if you install Git on Windows.
- jQuery Mobile Web Development Essentials(Third Edition)
- 在最好的年紀學Python:小學生趣味編程
- Hyper-V 2016 Best Practices
- CockroachDB權威指南
- MATLAB圖像處理超級學習手冊
- ASP.NET Core 2 and Vue.js
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(高級進階篇)
- Python編程:從入門到實踐
- RISC-V體系結構編程與實踐(第2版)
- Getting Started with Eclipse Juno
- Python Data Science Cookbook
- Machine Learning With Go
- JavaScript+jQuery網頁特效設計任務驅動教程
- 零基礎學HTML+CSS
- 交互式程序設計(第2版)