def fact(x): return (1 if x<1 else x * fact(x-1))
Tag
Agile Android Apache Barcamp BGT Bux fix CMS Deployment Django DJango Template DVCS E-Commerce HTC installation Installation Instructions Java jobs Locale Localization Magento Mercurial mobile Mobile Phone mod_python MySQL PHP poem postgres Programming Project Management Python RegEx Satchmo TDD Template Thai language Translation twitter Unit test Website Optimizer wordpress WSGI กลอน บ่น หนังไทยMeta

bact'
ก.ค. 8th, 2009แหงะ บรรทัดเดียวจริง ๆ แต่หลาย statement นะ :p
nuboat
ก.ค. 8th, 2009def q220ss(n):
return ‘n’.join(['-'*((n+1)/2 - (i <= (n+1)/2 and i or 1 + n - i)) + '*'*((i 1) + '-'*((i 2 and (i <= (n+1)/2 and i or 1 + n - i) - 2 or 0) + '*'*((i <= (n+1)/2 and i or 1 + n - i) == 1) + '-'*((i 1) + '-'*((i 2 and (i <= (n+1)/2 and i or 1 + n - i) - 2 or 0) + '*'*((i 1) + '-'*((n+1)/2 - (i <= (n+1)/2 and i or 1 + n - i)) for i in range(1, n+1) ])
เล่นบ้างบรรทัดเดียวก็เกินพอ อยากรู้ว่าทำอะไรเอาไปรันเองนะครับ ^ ^