Python

What’s the Return Value of a Bool Expression in Python?

We know that the boolean value of 0 is False, and the boolean value of 1 is True. What about the boolean value of a negative number, for example, -2 ? What’s the result of the expression True and 3 in Python? Is it True or False, or other value? Let’s find it out.

Jupyter Notebook使用

注:本文中部分内容是 Python for Data Analysis (by Wes Mckinney) 一书的学习笔记。

接着上一篇文章,我们从 Anaconda 命令行打开 Jupyter Notebook,在浏览器中会看到类似下图的页面,下方还有文件夹或者文件的列表。