__ = """
enu
Help
Some help
Colors
Red
Green
Light green
1
2
3
Dark green
Blue
Cyan
Cobalt blue
Diamond blue
Version
Verion 0.1
Details
D 1
D 2
D 3
Test version
Progress bar
""".splitlines()
class _:
def __init__(_):
_.___ = []
_.__ = [(-1, _.___)]
def _(_, __):
__________________ = _.___
for ___ in __:
if not ___.strip():
continue
____ = ___.replace('\t', ' ')
_____ = ____.lstrip()
______ = ____.strip()
_______ = len(____)-len(_____)
if _______ > _.__[-1][0]:
_________________ = []
__________________.append(_________________)
_.__.append((_______, _________________))
__________________ = _________________
elif _______ <_.__[-1][0]:
_.__.pop()
__________________ = _.__[-1][1]
__________________.append(______)
return _.___[0]
print _()._(__)
|
Friday, September 23, 2011
Priceless Python FU
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment