您的位置: 首页 > 文章 > python - python函数的参数传递是传值还是传引用? python - python函数的参数传递是传值还是传引用? 分类: 文章 • 2024-03-21 23:29:28 可更改(mutable)对象与不可更改(immutable)对象 str, tuple, 和number是不可更改的对象, list,dict等则是可以修改的对象。 example 结论 mutable 变量,传址 immutable 变量,传值