<p>你可以使用下面的黑客</p>
<p>在Pt类中,将<strong><em>undoc\u header</em></strong>设置为None,并重写<strong><em>打印主题</em></strong>如果header为None则不打印节的方法</p>
<pre><code>undoc_header = None
def print_topics(self, header, cmds, cmdlen, maxcol):
if header is not None:
if cmds:
self.stdout.write("%s\n"%str(header))
if self.ruler:
self.stdout.write("%s\n"%str(self.ruler * len(header)))
self.columnize(cmds, maxcol-1)
self.stdout.write("\n")
</code></pre>