The original works for me.
Do a 'print a' after each command and see how it changes.


On Jan 27, 1:55 am, web2pyer <chengfe...@gmail.com> wrote:
> I tried the below what is given in the official documentation>>> a = 
> DIV(SPAN('a', 'b'), 'c')
> >>> print a
>
> <div><span>ab</span>c</div>>>> del a[1]
> >>> a.append(B('x'))
> >>> a[0][0] = 'y'
> >>> print a
>
> <div><span>yb</span><b>x</b></div>
>
> I typed>>>a = DIV(SPAN('a', 'b'), 'c')
> >>>print a
>
> <div><span>ab</span>c</div>
> but when I typed
>  >>> del a[1]>>> a.append(B('x'))
> >>> a[0][0] = 'y'
> >>> print a
>
> <div><span>ab</span>c</div>
> It returned <div><span>ab</span>c</div>,nothing changed?
> I got confused.
> What is the reason?
> TKS!

Reply via email to