Message279972
Thank for attention,but see this:
>>> x=y=[]
>>> x=y=[0]*3
>>> x
[0, 0, 0]
>>> y
[0, 0, 0]
>>> y=[0, 1, 1]
>>> x
[0, 0, 0]
>>> y
[0, 1, 1]
>>> y[1]+=1
>>> y
[0, 2, 1]
>>> x
[0, 0, 0]
>>> x[0]+=5
>>> x
[5, 0, 0]
>>> y
[0, 2, 1]
then must my code work and there is another problem :/
*********************************
notice: I don't write like this:
>>> x=[]
>>> y=x |
|
Date |
User |
Action |
Args |
2016-11-03 08:10:38 | saeed | set | recipients:
+ saeed, ezio.melotti, martin.panter |
2016-11-03 08:10:38 | saeed | set | messageid: <1478160638.36.0.213969367313.issue28594@psf.upfronthosting.co.za> |
2016-11-03 08:10:38 | saeed | link | issue28594 messages |
2016-11-03 08:10:38 | saeed | create | |
|