Last active
November 17, 2018 00:08
-
-
Save liuderchi/c89262cfe494ee486fdfa7ababa9cd3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# 用 Jupyter 在互動環境應學 Python" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## 快速上手三招 \n", | |
" 1. 讀完每個方塊的內容之後,按 `shift - enter` 執行方塊,遇到 *程式碼灰色方塊* 會出現計算結果\n", | |
" 2. 按 `enter` 進入編輯模式,編輯灰色方塊或文字方塊\n", | |
" 3. 按 `esc` 切換到指令模式,可以輸入熱鍵而不會編輯方塊" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"*進階技巧*:按 `esc - p` 啟動命令選單\n", | |
" - 命令選單中選擇 `edit command mode keyboard shortcut` 可以客製化你常用的指令熱鍵\n", | |
" - 我搭配熱鍵的常用指令: `run all cells` `run one cell` `clear cell output` `clear all cell output` `delete cell`" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"##### 學習 python 資源\n", | |
" - [mac 環境安裝 python](https://stringpiggy.hpd.io/mac-osx-python3-dual-install/)\n", | |
" - [安裝 Jupyter](https://oranwind.org/bid-data-mac-os-an-zhuang-jupyter/)\n", | |
" - [Python 入門](http://djangogirlstaipei.herokuapp.com/tutorials/python/?os=osx)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### 讓我們算一些數學!" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 84, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"a = 2+5+3" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"按 enter 記錄你的想法吧\n", | |
"\n", | |
"*" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### Boolean Operator" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 85, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"10\n" | |
] | |
} | |
], | |
"source": [ | |
"print(a)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"### Function" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"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.6.2" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment