python tab.py
来源:互联网 发布:电脑必学软件 编辑:程序博客网 时间:2024/05/29 07:30
Python环境中能使用tab键
[root@localhost ~]# cat /usr/lib/python2.7/startup.py #!/usr/bin/pythonimport rlcompleterimport readlineimport atexitimport os# http://stackoverflow.com/questions/7116038/python-tab-completion-mac-osx-10-7-lionif'libedit'in readline.__doc__:readline.parse_and_bind('bind ^I rl_complete')else:readline.parse_and_bind('tab: complete')histfile = os.path.join(os.environ['HOME'],'.pyhist')try:readline.read_history_file(histfile)except IOError:passatexit.register(readline.write_history_file, histfile)del readline, rlcompleter, histfile, os
2、Python脚本一般都是用tab键来缩进的,但是默认的tab键太长,是8位,最好是改成4位:
修改~/.vimrc文件,加入:
set ts=4
0 0
- Python tab.py
- python tab.py
- 用reindent.py修复python代码缩进(tab键引发的问题)
- python---把tab.py的tab键自动补齐命令脚本,放入包目录下,python所有文件都可以使用
- 边学边用python-searchs.py
- python __init__.py
- python __init__.py
- python 的sitecustomize.py
- 【python 练习】read_first_20line.py
- python __init__.py
- python __init__.py
- python之 __init__.py
- python __init__.py介绍
- 【python】__init__.py
- python __init__.py详解
- python crawler0723.py
- python crawler0723.py
- python crawler0729.py
- nohup和screen
- loadrunner场景虚拟IP设置
- 天秤男最真实的解析!!
- Android Apk重新打包
- Keyboard Row
- python tab.py
- 关于actionbar中searchview使用
- Oracle层次化查询
- Android应用性能优化之使用SparseArray替代HashMap
- s2-045漏洞分析
- 解决Installation failed with message failed to establish session
- SSM框架——使用MyBatis Generator自动创建代码
- Unity和ios进行相册的一些交互
- java WebSocket实现简单的聊天室(包括群发和点对点聊天)