1. 程式人生 > >python使用工具簡介介紹

python使用工具簡介介紹

ins 包管理 同時 char project arm 研究生 python3 inter

我從研究生開學以來就開始在學python,現在來簡單分享下一些基本的使用命令和快捷方式
Pycharm:
運行程序 ctrl+alt+F10
刪除一行ctrl+D
註釋ctrl+/

安裝python所需要的包也非常簡單
方法一:通過cmd命令 pip install 所需要的包名
方法二:pycharm裏面 File>Setting>Project 文件夾名字>Project Interpretor

jupyter和anaconda:
推薦安裝anaconda,因為自帶jupyter安裝並且包相關聯,anaconda是一個包管理器,至今非常好用
顯示行號:l
收縮顯示內容:o
運行不跳到下一個執行框:ctrl+enter
運行並調到下一行:shift+enter
顯示源碼提示或者源碼內容:shift+tab

想要解決python 2.x和python3.x同時出現在一個jupyter裏面

步驟一:安裝anaconda 2版本,並且勾選註冊python2.x為系統python,
步驟二:安裝anaconda 3版本,不勾選任何東西,路徑可以隨意改
步驟三:到anaconda 3安裝目錄,運行python.exe -m ipykernel install --user 即可設置成功。

python使用工具簡介介紹