在Ubuntu中实现python按tab键补全
xpleaf@py:~/seminar6/day1$ pythonPython 2.7.3 (default, Aug1 2012, 05:14:39)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys ===>导入sys模块只是为了下面对tab键补全做测试
>>> import tab ===>这才是重点
>>> sys. ===>输入sys.后按两次tab键
sys.__class__( sys.exit(
sys.__delattr__( sys.exitfunc(
sys.__dict__ sys.flags
sys.__displayhook__( sys.float_info
sys.__doc__ sys.float_repr_style
sys.__excepthook__( sys.getcheckinterval(
sys.__format__( sys.getdefaultencoding(
sys.__getattribute__( sys.getdlopenflags(
sys.__hash__( sys.getfilesystemencoding(
sys.__init__( sys.getprofile(
sys.__name__ sys.getrecursionlimit(
sys.__new__( sys.getrefcount(
sys.__package__ sys.getsizeof(
sys.__reduce__( sys.gettrace(
sys.__reduce_ex__( sys.hexversion
sys.__repr__( sys.long_info
sys.__setattr__( sys.maxint
sys.__sizeof__( sys.maxsize
sys.__stderr__ sys.maxunicode
sys.__stdin__ sys.meta_path
sys.__stdout__ sys.modules
sys.__str__( sys.path
sys.__subclasshook__( sys.path_hooks
sys._clear_type_cache( sys.path_importer_cache
sys._current_frames( sys.platform
sys._getframe( sys.prefix
sys._mercurial sys.ps1
sys.api_version sys.ps2
sys.argv sys.py3kwarning
sys.builtin_module_names sys.pydebug
sys.byteorder sys.setcheckinterval(
sys.call_tracing( sys.setdlopenflags(
sys.callstats( sys.setprofile(
sys.copyright sys.setrecursionlimit(
sys.displayhook( sys.settrace(
sys.dont_write_bytecode sys.stderr
sys.exc_clear( sys.stdin
sys.exc_info( sys.stdout
sys.exc_type sys.subversion
sys.excepthook( sys.version
sys.exec_prefix sys.version_info
sys.executable sys.warnoptions
>>> sys.
页:
[1]