python interview summary knowledge

 1.python difference is in and of ==

  1. Python three basic elements contained in the object, are: id (identity), type (data type) and value (value).

  2. == comparison value is a value

  3. 'Is' is compared id

 

Guess you like

Origin www.cnblogs.com/shierlou-123/p/11345021.html