Movatterモバイル変換


[0]ホーム

URL:


[Python-ideas] Columnize in module "cmd"

Guido van Rossumguido at python.org
Tue Dec 20 16:14:38 CET 2011


That code is trying to find an optimal solution where the columns may be ofdifferent width.Good luck!--GuidoOn Mon, Dec 19, 2011 at 8:07 PM, Tom Zhou <pytom at yahoo.cn> wrote:>> Hi~ alls>  recently, i focus on the module "cmd", and find some confused things--> the function named "columnize". Why we need a multiloop as> "for nrows ..>         for col ..>                    for row.."> ?? i think we can make a easier method, for example, first, find out the> maxlen str in list, and use its length as the standard size to format the> list.> Ok, maybe i ignore something, so please give me some hints.>>> ---> thanks> tom>>>> _______________________________________________> Python-ideas mailing list>Python-ideas at python.org>http://mail.python.org/mailman/listinfo/python-ideas>>-- --Guido van Rossum (python.org/~guido)-------------- next part --------------An HTML attachment was scrubbed...URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111220/bf7c2dfb/attachment.html>


More information about the Python-ideasmailing list

[8]ページ先頭

©2009-2026 Movatter.jp