Livejournal
Log in
Post
Friends
My journal
rasergiy
Хорошие новости о видимости переменных
Oct 19, 2012 16:43
Python 2.x
>>> spam = 'spam'
>>> [spam for spam in range(1)]
[0]
>>> spam
0
Python 3.x
>>> spam = 'spam'
>>> [spam for spam in range(1)]
[0]
>>> spam
'spam'
programming
,
python
Leave a comment
Previous post
Next post
Up