---
title: "在cmd下打开python shell的tab自动补全功能"
author: "doujiu"
date: "2009-12-01T21:12:00Z"
tags: []
slug: "cmd-python-shell-tab"
draft: false
lastmod: "2009-12-01T21:12:00Z"
id: 629972
url: "https://doujiu.iteye.com/blog/629972"
---

[在cmd下打开python shell的tab自动补全功能 - 我的文章 - MotsQueen](http://blog.chinaunix.net/u/13637/showart_437491.html)

> 在cmd下打开python shell的tab自动补全功能  
> 简单记录：
> 
> /&gt;&gt;&gt; import rlcompleter, readline  
> /&gt;&gt;&gt; readline.parse\_and\_bind('tab: complete')  
> /&gt;&gt;&gt;

![](http://img.zemanta.com/pixy.gif?x-id=2fd012a8-1f48-81a7-93a8-f4851880b5c7)