[NAME]
ALL.dao.operator.assignment

[TITLE]
赋值运算符

[DESCRIPTION]


 0.1  Compound Assignment Operators 

     
   1  (int|float) += (int|float) # Addition assignment;
   2  (int|float) -= (int|float) # Subtraction assignment;
   3  (int|float) *= (int|float) # Multiplication assignment;
   4  (int|float) /= (int|float) # Division assignment;
   5  (int|float) %= (int|float) # Modulo assignment
   6  
   7  (int|float) &= (int|float) # Bitwise AND assignment;
   8  (int|float) |= (int|float) # Bitwise OR assignment;
   9  (int|float) ^= (int|float) # Bitwise XOR assignment;
  10  
  11  array(<int>|<float>) += (int|float) # Addition assignment;
  12  array(<int>|<float>) -= (int|float) # Subtraction assignment;
  13  array(<int>|<float>) *= (int|float) # Multiplication assignment;
  14  array(<int>|<float>) /= (int|float) # Division assignment;
  15  array(<int>|<float>) %= (int|float) # Modulo assignment
  16  
  17  array(<int>|<float>) += array(<int>|<float>) # Addition assignment;
  18  array(<int>|<float>) -= array(<int>|<float>) # Subtraction assignment;
  19  array(<int>|<float>) *= array(<int>|<float>) # Multiplication assignment;
  20  array(<int>|<float>) /= array(<int>|<float>) # Division assignment;
  21  array(<int>|<float>) %= array(<int>|<float>) # Modulo assignment
  22  
  23  array<complex> += (int|float|complex|array) # Addition assignment;
  24  array<complex> -= (int|float|complex|array) # Subtraction assignment;
  25  array<complex> *= (int|float|complex|array) # Multiplication assignment;
  26  array<complex> /= (int|float|complex|array) # Division assignment;
  27  array<complex> %= (int|float|complex|array) # Modulo assignment
     

 0.2  Multiple Assignment: 

     
   1  ( C, A, B, ... ) = ( A, B, C, ... )
   2  ( A, B ) = func();
     
the expression in the right side should yield a list or tuple, and each of the elements i
n the tuple/list is assigned accordingly to each of the variables in the left side. Extra
elements are ignored.