这是给“小白”的notebook指南。notebook
是算法开发经常使用的工具。
安装notebook
$ pip install notebook
运行notebook
$ jupyter-notebook .
在终端下运行这个命令可以启动notebook
。
使用IPython-Notebook
点击右方的New按钮,选择Python3,以此来启动一个新的NoteBook。

这时会新创建一个文件。

在In [ ]:
后输入要运行的代码,然后点击Run
即可运行。例如:

使用Terminal

Terminal就是之前在Windows下的cmd
,MacOS下的terminal
,点击之后见到这个界面:

尝试输入python,就可以像之前那样进行命令行编程了。