如何在Python shell中添加选项卡自动完成?

10 浏览
0 Comments

如何在Python shell中添加选项卡自动完成?

当使用python manage.py shell启动一个django应用程序时,我会得到一个交互式控制台 - 我可以使用tab键补全等功能。

Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)

当只是使用python启动一个python解释器时,它不提供tab键补全。

有人可以告诉我django是如何给我提供一个交互式控制台的,或者我需要做什么来启动一个没有django应用程序的交互式控制台吗?

0