第一节:python编写tab键补全程序
2016-10-12 17:31
351 查看
vi /usr/lib/python2.6/site-packages/tab.py #!/usr/bin/env python # python startup file import sys import readline import rlcompleter import atexit import os # tab completion readline.parse_and_bind('tab: complete') # history file histfile = os.path.join(os.environ['HOME'], '.pythonhistory') try: readline.read_history_file(histfile) except IOError: pass atexit.register(readline.write_history_file, histfile) del os, histfile, readline, rlcompleter
相关文章推荐
- ubuntu 中python交互式程序设置tab自动补全
- linux下 为自己编写的程序 添加tab自动补全 功能
- 用python编写ftp客户端程序
- 用Python编写运行Hello World程序
- 使用Python开发Android应用程序:第三节 在电脑上编写程序在手机上运行
- python基础31[visualstudio2010来编写python程序]
- 使用Python开发Android应用程序:第三节 在电脑上编写程序在手机上运行
- python编写的在windows下关闭linux/unix系统的程序。
- 用Python编写运行 Hello World程序
- 在Eric4下用PyQt4编写Python的图形界面程序
- scientific linux下 用Python for S60的Bluetooth Console编写手机程序
- 在Eric4下用PyQt4编写Python的图形界面程序
- 在 Vim 中编写 Python 程序
- 在 Vim 中编写 Python 程序[转自啄木鸟]
- 用python编写程序游戏——号码球
- 在cmd下打开python shell的tab自动补全功能
- 编写Python程序访问需要cookie的网页
- 用Python快速编写网站遍历程序
- Pyjamas:使用Python编写AJAX程序
- 配置python命令tab键自动补全