euglug.org

[Python] Python subtleties

작성자

카테고리:



Rob HudsonThu Sep 21 16:41:48 PDT 2006

In Python, what's the difference between these two:

1) var = ('val')
2) var = ('val',)

Knowing that, is there a difference between these two?

3) var = ('val1', 'val2')
4) var = ('val1', 'val2',)

-Rob