刚刚下载了python的最新版本,测试一下。最新版本是https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
这个是tab补全的一个脚本.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@Test5 ~]# cat /usr/local/python/lib/python3.5/site-packages/tab.py #!/usr/local/python/bin/python3 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 |
转载:https://my.oschina.net/lenglingx/blog/500821 SourceByrd's Weblog-https://note.t4x.org/basic/python-use-tab/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
上海市 1F
不错,不错,看看了!