Python数据分析入门到实战《网易云课堂》

190 阅读1分钟

download:Python数据分析入门到实战《网易云课堂》

{

"cells": [

{

"cell_type": "code",

"execution_count": 1,

"metadata": {},

"outputs": [

{
 "name": "stdout",
 "output_type": "stream",
 "text": [
  "[0 1 2 3 4 5 6 7 8 9]\n"
 ]
}

],

"source": [

"import numpy as np\n",
"a = np.arange(10)\n",
"print(a)"

] }, { "cell_type": "markdown", "metadata": {}, "source": [

"# print(\"hello world\")"

] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [

"a = 10\n",
"b = 5"

] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [

{
 "name": "stdout",
 "output_type": "stream",
 "text": [
  "2.0\n"
 ]
}

], "source": [

"c = a/b\n",
"print(c)\n",
"b = 0"

] }, { "cell_type": "markdown", "metadata": {}, "source": [

"1. 打开jupyter notebook的方式:\n",
"    * 先打开anaconda prompt,然后进入到项目所在的路径。\n",
"    * 然后在输入命令jupyter notebook,让他自动的在浏览器中打开编辑器。\n",
"2. 一些快捷方式。大家可以查看教案。\n",
"3. jupyter notebook运行原理是把所有运行了的变量存储在内存中,所以如果后面的cell中的代码修改了之前cell中的值,那么重复运行cell,可能会得不到预期的结果,设置报错。解决方案是点击一下`>>`两个箭头的那个按钮,让他重新从第一个cell运行一下。"

] } ], "metadata": { "kernelspec": {

"display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": {

"codemirror_mode": { "name": "ipython", "version": 3

},

"file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1"

} }, "nbformat": 4,

"nbformat_minor": 2

}