1. IPython介紹
IPython 是一個 python 的交互式 shell,比默認的python shell 好用得多,支持變量自動補全,自動縮進,支持 bash shell 命令,內置了許多很多功能和函數。
2. PyCharm控制台python shell與IPython shell的切換
1)安裝IPython模塊(如果沒有安裝)
在cmd中通過pip命令安裝
pip install IPython
2)python shell 與 IPython shell 的切換
file ----> setting ----> Build, Execution, Deployment ----> console
Use IPython if available前打勾就是切換到IPython shell,去掉勾就是默認的python shell,設置好后重啟python consolel就可使設置生效。效果圖如下:

