Chinaunix首页 | 论坛 | 博客
  • 博客访问: 155342
  • 博文数量: 26
  • 博客积分: 1723
  • 博客等级: 上尉
  • 技术积分: 329
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-04 14:06
文章分类

全部博文(26)

文章存档

2016年(1)

2013年(5)

2011年(3)

2009年(6)

2008年(11)

分类: Python/Ruby

2013-07-04 16:04:31


点击(此处)折叠或打开

  1. #python startup file

  2. import readline
  3. import rlcompleter
  4. import atexit
  5. import os

  6. #tab completion
  7. readline.parse_and_bind('tab:complete')
  8. #histfile
  9. histfile = os.path.join(os.environ['HOME'],'.pythonhistory')
  10. try:
  11.     readline.read_history_file(histfile)
  12. except IOError:
  13.     pass
  14. atexit.register(readline.write_history_file,histfile)
  15. del os,histfile,readline,rlcompleter

阅读(2805) | 评论(0) | 转发(0) |
0

上一篇:数字游戏 2

下一篇:shellinabox

给主人留下些什么吧!~~