clh899 发表于 2018-8-13 13:20:39

Python命令行加TAB补全(2.6)

$ python  
Python 2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
  
on linux2
  
Type "help", "copyright", "credits" or "license" for more information.
  
>>> import tab
  
>>> import sys
  
>>> sys.
  
sys.__class__(            sys.__setattr__(            sys.copyright               sys.getfilesystemencoding(sys.prefix
  
sys.__delattr__(            sys.__sizeof__(             sys.displayhook(            sys.getprofile(             sys.ps1
  
sys.__dict__                sys.__stderr__            sys.dont_write_bytecode   sys.getrecursionlimit(      sys.ps2
  
sys.__displayhook__(      sys.__stdin__               sys.exc_clear(            sys.getrefcount(            sys.py3kwarning
  
sys.__doc__               sys.__stdout__            sys.exc_info(               sys.getsizeof(            sys.setcheckinterval(
  
sys.__excepthook__(         sys.__str__(                sys.exc_type                sys.gettrace(               sys.setdlopenflags(
  
sys.__format__(             sys.__subclasshook__(       sys.excepthook(             sys.hexversion            sys.setprofile(
  
sys.__getattribute__(       sys._clear_type_cache(      sys.exec_prefix             sys.maxint                  sys.setrecursionlimit(
  
sys.__hash__(               sys._current_frames(      sys.executable            sys.maxsize               sys.settrace(
  
sys.__init__(               sys._getframe(            sys.exit(                   sys.maxunicode            sys.stderr
  
sys.__name__                sys.api_version             sys.exitfunc(               sys.meta_path               sys.stdin
  
sys.__new__(                sys.argv                  sys.flags                   sys.modules               sys.stdout
  
sys.__package__             sys.builtin_module_names    sys.float_info            sys.path                  sys.subversion
  
sys.__reduce__(             sys.byteorder               sys.getcheckinterval(       sys.path_hooks            sys.version
  
sys.__reduce_ex__(          sys.call_tracing(         sys.getdefaultencoding(   sys.path_importer_cache   sys.version_info
  
sys.__repr__(               sys.callstats(            sys.getdlopenflags(         sys.platform                sys.warnoptions
  
>>> sys.
页: [1]
查看完整版本: Python命令行加TAB补全(2.6)