Python 2.x(单个表达式)
现在,尽管对于Pythoneers来说这很容易弄清楚,但其他人可能至少觉得很有趣。如果您想知道为什么有那么多的lambda,我想拥有最大的下划线,但重复次数最少。谁不喜欢下划线?伊迪奥
(lambda ______________:(lambda ______,_______,________:(lambda _____:(lambda _,___,__,____,_____________:(lambda _________,__________:(lambda ___________,____________:___________(____________,____[_________**(_________+__________)-__________::_________+_________+_________]+_[__________::_________]+__[_________+__________])(____________,______________))((lambda _,__:________(______(_))[__]),(________(__import__(_[_________]+__[_________*_________+__________]+_[_________]))[_[_________:_________+_________]+___[__________/_________]+__[__________]+_____(u'')[__________/_________]+_[_________+__________]])))((_____________(_)+_____________(_))/_____________(_),_____________(_)/_____________(_)))(_____([]),_____({}),_____(None),_____({}.__iter__),lambda _:len(_)))(lambda _:_______(______(_))))((lambda _:_.__class__),(lambda _:_.__name__),(lambda _:_.__dict__)))('Just another Python Hacker\n')
缩进版本,如果您愿意:
(lambda ______________:
(lambda ______,_______,________:
(lambda _____:
(lambda _,___,__,____,_____________:
(lambda _________,__________:
(lambda ___________,____________:
___________(____________,____[_________**(_________+__________)-__________::_________+_________+_________]+_[__________::_________]+__[_________+__________])(____________,______________)) (
(lambda _,__:________(______(_))[__]),
(________(__import__(_[_________]+__[_________*_________+__________]+_[_________]))[_[_________:_________+_________]+___[__________/_________]+__[__________]+_____(u'')[__________/_________]+_[_________+__________]]))) (
(_____________(_)+_____________(_))/_____________(_),
_____________(_)/_____________(_))) (
_____([]),
_____({}),
_____(None),
_____({}.__iter__),
lambda _:len(_))) (
lambda _:_______(______(_)))) (
(lambda _:_.__class__),
(lambda _:_.__name__),
(lambda _:_.__dict__)))('Just another Python Hacker\n')
这定义了一个函数,并使用“ Just another Python Hacker”进行调用。现在,它不必一定是一个函数,但我认为它会更优雅。
f = (lambda ______________:(lambda ______,_______,________:(lambda _____:(lambda _,___,__,____,_____________:(lambda _________,__________:(lambda ___________,____________:___________(____________,____[_________**(_________+__________)-__________::_________+_________+_________]+_[__________::_________]+__[_________+__________])(____________,______________))((lambda _,__:________(______(_))[__]),(________(__import__(_[_________]+__[_________*_________+__________]+_[_________]))[_[_________:_________+_________]+___[__________/_________]+__[__________]+_____(u'')[__________/_________]+_[_________+__________]])))((_____________(_)+_____________(_))/_____________(_),_____________(_)/_____________(_)))(_____([]),_____({}),_____(None),_____({}.__iter__),lambda _:len(_)))(lambda _:_______(______(_))))((lambda _:_.__class__),(lambda _:_.__name__),(lambda _:_.__dict__)))
f('Hello.\n')
f('Just another Python Hacker here.\n')