简体   繁体   中英

Autocompletion and function definition in Python Interpreter

See the below GIF关联

How does the documentation for all the functions appear as you type in the terminal?

I am already familiar with autocompletion and there are bunch to tutorials to do this but what about function definition? Currently I am using pip install ptpython module to get autocompletion feature but I want to know the function definition as well. Could anyone help me?

Got my answer from @Padraic Cunningham. See the comment section.

This is a bpython shell. You can download using pip or apt-get install bpython

pip install bpython
sudo apt-get install bpython

To start go to your terminal and type bpython

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM