2009-01-28から1日間の記事一覧
最近,コードが書けない生活が続いてるのでストレス解消. map((lambda x:((x%15==0) and "fizzbuzz" or ((x%3==0) and "fizz" or ((x%5==0) and "buzz" or x)))),range(1,101)) 1行に収まったw. >>> map((lambda x:((x%15==0) and "fizzbuzz" or ((x%3==0) an…
最近,コードが書けない生活が続いてるのでストレス解消. map((lambda x:((x%15==0) and "fizzbuzz" or ((x%3==0) and "fizz" or ((x%5==0) and "buzz" or x)))),range(1,101)) 1行に収まったw. >>> map((lambda x:((x%15==0) and "fizzbuzz" or ((x%3==0) an…