python's mutable & immutable

  python里面的类型其实也分为immutable和mutable二种,对于mutable,如果b指向a,当b改变时,a也会改变;对于immutable,如果b改变,不会影响a。

  python's mutable & immutable

  参考:http://www.ibaiyang.org/2012/05/04/howtopython/

相关文章:

  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-11-30
  • 2021-08-09
猜你喜欢
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-06-26
  • 2021-06-25
相关资源
相似解决方案