[Tutor] (no subject)

deng wei deng@ms.shlftdc.net.cn
Thu, 31 Aug 2000 9:0:1 +0800


 Hi:
    Here is a question in the python munual 3.1.3.
    The example said:
    a = ['spam', 'eggs', 100, 1234];
    a[0]='spam',a[1]='eggs',a[2]=100 and a[4]=1234;
    It then said:
    a[0:2]=[1,12]
    I think it's a error assignment.
    'Cause I believe a[0:2]=['spam','eggs',100];
    Why? 
    Any comments are Welcome.Thanks in advance.