01-fidder配置和jupyter環境安裝
阿新 • • 發佈:2020-10-04
一、fidder配置
1.開啟fidder,點選Tools
2.點選HTTPS,勾上下面選項
二、安裝Jupyter Notebook
1.下載jupyter
pip3 install jupyter
2. 啟動
① 預設埠啟動
jupyter notebook
訪問瀏覽器,位址列中預設地將會顯示:http://localhost:8888
。其中,“localhost”指的是本機,“8888”則是埠號。
② 指定埠啟動
jupyter notebook --port <port_number> 其中,“<port_number>”是自定義埠號,直接以數字的形式寫在命令當中,數字兩邊不加尖括號“<>”。如:jupyter notebook --port 9999,即在埠號為“9999”的伺服器啟動Jupyter Noteboo
3.快捷鍵
向上插入一個cell:a 向下插入一個cell:b 刪除cell:x 將code切換成markdown:m 將markdown切換成code:y 執行cell:shift+enter 檢視幫助文件:shift+tab 自動提示:tab 3. 魔法指令 執行外部python原始檔:%run xxx.py 計算statement的執行時間:%time statement 計算statement的平均執行時間:%timeit statement 測試多行程式碼的平均執行時間: %%timeit statement1 statement2 statement3