Livejournal
Log in
Post
Friends
My journal
madbox_lj
Докажи!
madbox_lj
Aug 26, 2009 14:06
(
Read more...
)
programming
,
python
,
humor
Leave a comment
2
Yet Another Holy War Post
madbox_lj
Sep 25, 2008 14:38
http://c2.com/cgi/wiki?PythonVsRuby
интересный текст на тему.
нравится пример:
a = []; 3.times {|x| 3.times {|y| a << [x,y] if x != y } }
for x in range(3):
for y in range(3):
if x != y:
a += [(x,y)]
Помоему все очевидно :)
ruby
,
python
Leave a comment
Up