Python 2.x (biểu thức đơn)
Bây giờ, trong khi điều này khá dễ dàng để tìm ra Pythoneers, những người khác có thể thấy nó ít nhất là thú vị. Nếu bạn tự hỏi tại sao có quá nhiều lambdas, tôi muốn có độ sáng tối đa, nhưng sự lặp lại tối thiểu. Ai không thích cởi quần áo? Ý tưởng
(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')
Một phiên bản thụt lề nếu bạn thích:
(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')
Điều này xác định một hàm và gọi nó bằng 'Chỉ là một Hacker Python khác'. Bây giờ, nó không phải là một chức năng, nhưng tôi nghĩ nó sẽ thanh lịch hơn.
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')